#Static compilation on MacOS

2 messages · Page 1 of 1 (latest)

devout nimbus
#

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?

nimble mural
#

On linux, I build statically using RUSTFLAGS='-C target-feature=+crt-static' cargo lambda build --bin default-project --release --x86-64 --compiler cargo --verbose