Another try to build for macOS.
This commit is contained in:
+6
-1
@@ -23,4 +23,9 @@ rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.mipsel-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.aarch64-apple-darwin]
|
||||
rustflags = ["-Ctarget-cpu=native", "-Clink-arg=-s"]
|
||||
# Suppress int-conversion warnings in webview-sys for Apple Silicon
|
||||
cc = "clang -Wno-int-conversion"
|
||||
@@ -1,11 +1,6 @@
|
||||
extern crate winres;
|
||||
|
||||
fn main() {
|
||||
// Suppress int-conversion warnings for macOS ARM (Apple Silicon) webview compatibility
|
||||
if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") {
|
||||
println!("cargo:rustc-env=CFLAGS=-Wno-int-conversion");
|
||||
}
|
||||
|
||||
if cfg!(target_os = "windows") {
|
||||
let mut res = winres::WindowsResource::new();
|
||||
res.set_icon("img/logo/alfis.ico");
|
||||
|
||||
Reference in New Issue
Block a user