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
12 changes: 12 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
[alias]
compiletest = "run --release -p compiletests --"


[target.x86_64-pc-windows-msvc]
# Using Rust's LLD linker to avoid MSVC linker limitations
linker = "rust-lld.exe"
rustflags = [
# Disables cross-crate generic sharing to work around Windows PE export limits.
# Should prevent:
# - LNK1189 (too many objects)
# - LNK1248 (too many exports)
"-Zshare-generics=n", # =off is also an option, but you're going to increase binary size in doing so.
]

[target.'cfg(all())']
rustflags = [
# FIXME(eddyb) update/review these lints.
Expand Down