Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,22 @@ rustflags = ["-C", "target-feature=+crt-static"]

[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.'cfg(target_os = "windows")']
rustflags = [
# Disables linking against the default Universal C Runtime (libucrt.lib). This prevents conflicts if another CRT library is linked manually.
"-C",
"link-args=/NODEFAULTLIB:libucrt.lib",
# Manually adds ucrt.lib (the Universal CRT) as a default library to link against, replacing the one you just excluded above.
# This ensures consistent linking when multiple CRTs might be available.
"-C",
"link-args=/DEFAULTLIB:ucrt.lib",
]

# LLD linker is currently broken for us, opt out.
# https://blog.rust-lang.org/2025/09/18/Rust-1.90.0/#what-s-in-1-90-0-stable
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "linker-features=-lld"]