Enable cranelift on linux for compiling rust faster.

This is based on https://bjorn3.github.io/2023/10/31/progress-report-oct-2023.html.
This commit is contained in:
Tom Alexander 2024-09-29 22:16:12 -04:00
parent 8e5034a393
commit 5331552759
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -1,2 +1,12 @@
[target.x86_64-unknown-linux-gnu] [target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-Zthreads=0"] rustflags = ["-C", "target-cpu=native", "-Zthreads=0"]
[unstable]
codegen-backend = true
[profile.dev]
codegen-backend = "cranelift"
[profile.dev.package."*"]
codegen-backend = "llvm"
opt-level = 3