Skip to content

Instantly share code, notes, and snippets.

@sangelxyz
Last active April 25, 2024 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangelxyz/29a2395cf609aa469219a162f9379e90 to your computer and use it in GitHub Desktop.
Save sangelxyz/29a2395cf609aa469219a162f9379e90 to your computer and use it in GitHub Desktop.
rust-optimised-sccache-mold-cranelift
[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