mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
17 lines
683 B
TOML
17 lines
683 B
TOML
|
# Statically link the vcruntime
|
||
|
# https://users.rust-lang.org/t/static-vcruntime-distribute-windows-msvc-binaries-without-needing-to-deploy-vcruntime-dll/57599
|
||
|
[target.'cfg(all(windows, target_env = "msvc"))']
|
||
|
rustflags = [
|
||
|
"-C",
|
||
|
"link-args=/DEFAULTLIB:ucrt.lib /DEFAULTLIB:libvcruntime.lib libcmt.lib",
|
||
|
"-C",
|
||
|
"link-args=/NODEFAULTLIB:libvcruntimed.lib /NODEFAULTLIB:vcruntime.lib /NODEFAULTLIB:vcruntimed.lib",
|
||
|
"-C",
|
||
|
"link-args=/NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib",
|
||
|
"-C",
|
||
|
"link-args=/NODEFAULTLIB:libucrt.lib /NODEFAULTLIB:libucrtd.lib /NODEFAULTLIB:ucrtd.lib",
|
||
|
]
|
||
|
|
||
|
[target.aarch64-unknown-linux-gnu]
|
||
|
linker = "aarch64-linux-gnu-gcc"
|