4169ede074
Fixed macOS and Ubuntu pipelines.
14 lines
405 B
Rust
14 lines
405 B
Rust
extern crate winres;
|
|
|
|
fn main() {
|
|
// Set compiler flags for macOS ARM (Apple Silicon)
|
|
if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") {
|
|
println!("cargo:rustc-env=CC=clang -Wno-int-conversion");
|
|
}
|
|
|
|
if cfg!(target_os = "windows") {
|
|
let mut res = winres::WindowsResource::new();
|
|
res.set_icon("img/logo/alfis.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
} |