Skip to content

Commit 35debd4

Browse files
committedOct 26, 2020
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: rust-lang/compiler-team#270 r? `@Mark-Simulacrum`
2 parents c96e11c + ac4f7de commit 35debd4

File tree

98 files changed

+17049
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+17049
-39
lines changed
 

‎Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ members = [
3131
]
3232
exclude = [
3333
"build",
34+
"compiler/rustc_codegen_cranelift",
3435
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
3536
"obj",
3637
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

0 commit comments

Comments
 (0)
Please sign in to comment.