Rollup merge of #87049 - jyn514:no-submodules, r=Mark-Simulacrum
Account for `submodules = false` in config.toml when updating LLVM submodule Fixes https://github.com/rust-lang/rust/issues/86954. r? ``@Mark-Simulacrum`` cc ``@durin42``
This commit is contained in:
commit
f3d5fde070
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ pub(crate) fn update_llvm_submodule(build: &Build) {
|
|||
t!(std::fs::read_dir(dir)).next().is_none()
|
||||
}
|
||||
|
||||
if !build.config.submodules {
|
||||
return;
|
||||
}
|
||||
|
||||
// NOTE: The check for the empty directory is here because when running x.py
|
||||
// the first time, the llvm submodule won't be checked out. Check it out
|
||||
// now so we can build it.
|
||||
|
|
Loading…
Add table
Reference in a new issue