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
Add require_and_update_submodule to ensure submodules exist
This adds a new method `require_and_update_submodule` to replace
`update_submodule`. This new method will generate an error if the
submodule doesn't actually exist. This replaces some ad-hoc checks that
were performing this function. This helps ensure that a good error
message is always displayed.
This also adds require_and_update_all_submodules which does this for
all submodules.
Ideally this should not have any change other than better error messages
when submodules are missing.
let compiler_builtins_root = builder.src.join("src/llvm-project/compiler-rt");
461
-
if !compiler_builtins_root.exists(){
462
-
panic!(
463
-
"need LLVM sources available to build `compiler-rt`, but they weren't present; consider enabling `build.submodules = true` or disabling `optimized-compiler-builtins`"
464
-
);
465
-
}
470
+
assert!(compiler_builtins_root.exists());
466
471
// Note that `libprofiler_builtins/build.rs` also computes this so if
467
472
// you're changing something here please also change that.
0 commit comments