Skip to content

Commit f3d5fde

Browse files
authored
Rollup merge of #87049 - jyn514:no-submodules, r=Mark-Simulacrum
Account for `submodules = false` in config.toml when updating LLVM submodule Fixes #86954. r? ``@Mark-Simulacrum`` cc ``@durin42``
2 parents 76aebb1 + 89d260f commit f3d5fde

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)