You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
477 B
TOML

[unstable]
codegen-backend = true
[profile.dev]
codegen-backend = "cranelift"
[profile.dev.package."*"]
codegen-backend = "llvm"
[profile.release]
lto = true
opt-level = 'z'
# for Linux
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = [
# (Nightly) Make the current crate share its generic instantiations
"-Zshare-generics=y",
# Link with Mold
"-C",
"link-arg=-fuse-ld=mold"
]
# for Windows
[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"