#Static compilation on MacOS
2 messages · Page 1 of 1 (latest)
On linux, I build statically using RUSTFLAGS='-C target-feature=+crt-static' cargo lambda build --bin default-project --release --x86-64 --compiler cargo --verbose
2 messages · Page 1 of 1 (latest)
so i know that to make static compilation on windows you put
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
into .cargo/config but how can i do the same for macos?
On linux, I build statically using RUSTFLAGS='-C target-feature=+crt-static' cargo lambda build --bin default-project --release --x86-64 --compiler cargo --verbose