Skip to content

Commit 89d260f

Browse files
committed
Account for submodules = false in config.toml when updating LLVM submodule
1 parent 432e145 commit 89d260f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/native.rs

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ pub(crate) fn update_llvm_submodule(build: &Build) {
9999
t!(std::fs::read_dir(dir)).next().is_none()
100100
}
101101

102+
if !build.config.submodules {
103+
return;
104+
}
105+
102106
// NOTE: The check for the empty directory is here because when running x.py
103107
// the first time, the llvm submodule won't be checked out. Check it out
104108
// now so we can build it.

0 commit comments

Comments
 (0)