Skip to content

Commit 3683e14

Browse files
committed
Auto merge of #66625 - michaelwoerister:test-thinlto-instr-import-limit, r=<try>
Test setting a lower import limit for ThinLTO. The Firefox build system [sets a lower ThinLTO import limit](https://searchfox.org/mozilla-central/search?q=-import-instr-limit&path=) since recently but because they discovered that that can significantly lower build times without really affecting runtime performance too much. Let's see how this would affect our benchmarks. r? @ghost
2 parents 4eee955 + 35aec48 commit 3683e14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_codegen_llvm/llvm_util.rs

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ unsafe fn configure_llvm(sess: &Session) {
7676
}
7777
}
7878

79+
add("-import-instr-limit=50");
80+
7981
if sess.target.target.target_os == "emscripten" &&
8082
sess.panic_strategy() == PanicStrategy::Unwind {
8183
add("-enable-emscripten-cxx-exceptions");

0 commit comments

Comments
 (0)