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");
321
-
if !compiler_builtins_root.exists(){
319
+
if !compiler_builtins_root.exists()|| builder.is_system_llvm(target){
322
320
panic!(
323
-
"needed LLVM sources available to build `compiler-rt`, but they weren't present; consider enabling `build.submodules = true`"
321
+
"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`"
324
322
);
325
323
}
326
324
// 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.
898
+
// We're using a user-controlled version of LLVM. The user has explicitly told us whether the version has our patches.
899
+
// (They might be wrong, but that's not a supported use-case.)
900
+
// 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