File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,22 @@ rustflags = ["-C", "target-feature=+crt-static"]
66
77[target .i686-pc-windows-msvc ]
88rustflags = [" -C" , " target-feature=+crt-static" ]
9+
10+ [target .aarch64-pc-windows-msvc ]
11+ rustflags = [" -C" , " target-feature=+crt-static" ]
12+
13+ [target .'cfg(target_os = "windows")' ]
14+ rustflags = [
15+ # Disables linking against the default Universal C Runtime (libucrt.lib). This prevents conflicts if another CRT library is linked manually.
16+ " -C" ,
17+ " link-args=/NODEFAULTLIB:libucrt.lib" ,
18+ # Manually adds ucrt.lib (the Universal CRT) as a default library to link against, replacing the one you just excluded above.
19+ # This ensures consistent linking when multiple CRTs might be available.
20+ " -C" ,
21+ " link-args=/DEFAULTLIB:ucrt.lib" ,
22+ ]
23+
24+ # LLD linker is currently broken for us, opt out.
25+ # https://blog.rust-lang.org/2025/09/18/Rust-1.90.0/#what-s-in-1-90-0-stable
26+ [target .x86_64-unknown-linux-gnu ]
27+ rustflags = [" -C" , " linker-features=-lld" ]
You can’t perform that action at this time.
0 commit comments