Navigation Menu

Skip to content

Commit

Permalink
Account for submodules = false in config.toml when updating LLVM su…
Browse files Browse the repository at this point in the history
…bmodule
  • Loading branch information
jyn514 committed Jul 11, 2021
1 parent 432e145 commit 89d260f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/native.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 89d260f

Please sign in to comment.