Account for submodules = false in config.toml when updating LLVM submodule

This commit is contained in:
Joshua Nelson 2021-07-10 21:33:03 -04:00
parent 432e145bd5
commit 89d260f86e

View File

@ -99,6 +99,10 @@ fn dir_is_empty(dir: &Path) -> bool {
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.