Move macOS ObjC link arg to Cargo config

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-31 23:12:43 -07:00
parent 61709ad6b3
commit 433dd643cb
4 changed files with 3 additions and 15 deletions

View File

@@ -9,3 +9,6 @@ rustflags = ["-C", "link-arg=/STACK:8388608", "-C", "link-arg=/arm64hazardfree"]
[target.'cfg(all(windows, target_env = "gnu"))']
rustflags = ["-C", "link-arg=-Wl,--stack,8388608"]
[target.'cfg(target_os = "macos")']
rustflags = ["-C", "link-arg=-ObjC"]

View File

@@ -1,5 +0,0 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-link-arg=-ObjC");
}
}

View File

@@ -1,5 +0,0 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-link-arg=-ObjC");
}
}

View File

@@ -1,5 +0,0 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-link-arg=-ObjC");
}
}