Last active
April 25, 2024 12:14
-
-
Save sangelxyz/29a2395cf609aa469219a162f9379e90 to your computer and use it in GitHub Desktop.
rust-optimised-sccache-mold-cranelift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unstable] | |
codegen-backend = true | |
[build] | |
rustc-wrapper = '/home/sangel/.cargo/bin/sccache' | |
rustflags = ["-Z", "threads=16"] | |
[target.x86_64-unknown-linux-gnu] | |
linker = "clang" | |
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"] | |
[profile.release] | |
opt-level = 3 | |
debug = 0 | |
incremental = false | |
codegen-units = 10 | |
lto= "thin" | |
[profile.dev.package."*"] | |
# Set the default for dependencies in Development mode. | |
codegen-backend = "cranelift" | |
opt-level = 3 | |
codegen-units = 10 | |
incremental=false | |
[profile.dev] | |
codegen-backend = "cranelift" | |
# Turn on a small amount of optimisation in Development mode. | |
opt-level = 1 | |
codegen-units = 10 | |
incremental=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment