about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-26 16:31:38 +0000
committerbors <bors@rust-lang.org>2020-10-26 16:31:38 +0000
commit35debd4c111610317346f46d791f32551d449bd8 (patch)
tree00c1dc66606e7721f4dab74a6048c454950ef3fb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc96e11c781af319199af77347d55f08085e15453 (diff)
parentac4f7deb2f3558d2d923fa6ddcbb7210db9c2d52 (diff)
downloadrust-35debd4c111610317346f46d791f32551d449bd8.tar.gz
rust-35debd4c111610317346f46d791f32551d449bd8.zip
Auto merge of #77975 - bjorn3:cg_clif_subtree3, r=Mark-Simulacrum
Add cg_clif as optional codegen backend

Rustc_codegen_cranelift is an alternative codegen backend for rustc based on Cranelift. It has the potential to improve compilation times in debug mode. In my experience the compile time improvements over debug mode LLVM for a clean build are about 20-30% in most cases.

This PR adds cg_clif as optional codegen backend. By default it is only enabled for `./x.py check`. It can be enabled for `./x.py build` too by adding `cranelift` to the `rust.codegen-backends` array in `config.toml`.

MCP: https://github.com/rust-lang/compiler-team/issues/270

r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions