From 429563eee9e7be85e65ebbb015019b0142de537f Mon Sep 17 00:00:00 2001 From: Revertron Date: Thu, 23 Oct 2025 21:46:16 +0200 Subject: [PATCH] Another try to build for macOS. --- .cargo/config.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index f74db1c..ee45b6e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -26,6 +26,8 @@ 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"] +rustflags = ["-C", "link-arg=-framework", "-C", "link-arg=Cocoa", "-C", "link-arg=-framework", "-C", "link-arg=WebKit"] + +[env] # Suppress int-conversion warnings in webview-sys for Apple Silicon -cc = "clang -Wno-int-conversion" \ No newline at end of file +CC_aarch64_apple_darwin = "clang -Wno-int-conversion" \ No newline at end of file