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
let compiler_builtins_root = builder.src.join("src/llvm-project/compiler-rt");
361
-
if !compiler_builtins_root.exists(){
359
+
if !compiler_builtins_root.exists()|| builder.is_system_llvm(target){
362
360
panic!(
363
-
"needed LLVM sources available to build `compiler-rt`, but they weren't present; consider enabling `build.submodules = true`"
361
+
"needed LLVM sources available to build `compiler-rt`, but they weren't present; consider enabling `build.submodules = true`, disabling `optimized-compiler-builtins`, or unsetting `llvm-config`"
364
362
);
365
363
}
366
364
// Note that `libprofiler_builtins/build.rs` also computes this so if
// We're using a pre-built version of LLVM, but the user has promised that pre-built version has our patches.
884
+
// We're using a user-controlled version of LLVM. The user has explicitly told us whether the version has our patches.
885
+
// (They might be wrong, but that's not a supported use-case.)
886
+
// 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`.
0 commit comments