You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #119556 - onur-ozkan:optimized-compiler-builtins, r=onur-ozkan
Reland optimized-compiler-builtins config
Copy of #102579 PR.
From #102579:
> No concerns on my side. Currently, Jyn isn't actively working on the project. I will close this PR; open another one to cherry-pick the commits, resolve conflicts, and then r+ it.
> Fixes#102560. Fixes#101172. Helps with #105065 (although there's some weirdness there - it's still broken when optimized-compiler-builtins is set to true).
Fixes#102560. Fixes#101172. Helps with #105065
r? ghost
let compiler_builtins_root = builder.src.join("src/llvm-project/compiler-rt");
430
+
if !compiler_builtins_root.exists(){
431
+
panic!(
432
+
"need LLVM sources available to build `compiler-rt`, but they weren't present; consider enabling `build.submodules = true` or disabling `optimized-compiler-builtins`"
433
+
);
434
+
}
424
435
// Note that `libprofiler_builtins/build.rs` also computes this so if
425
436
// you're changing something here please also change that.
// We're using a user-controlled version of LLVM. The user has explicitly told us whether the version has our patches.
848
+
// (They might be wrong, but that's not a supported use-case.)
849
+
// In particular, this tries to support `submodules = false` and `patches = false`, for using a newer version of LLVM that's not through `rust-lang/llvm-project`.
summary:"The dist.missing-tools config option was deprecated, as it was unused. If you are using it, remove it from your config, it will be removed soon.",
108
108
},
109
+
ChangeInfo{
110
+
change_id:102579,
111
+
severity:ChangeSeverity::Warning,
112
+
summary:"A new `optimized-compiler-builtins` option has been introduced. Whether to build llvm's `compiler-rt` from source is no longer implicitly controlled by git state. See the PR for more details.",
0 commit comments