Skip to content

Commit 174a311

Browse files
committed
Adapt llvm-has-rust-patches validation to take llvm-config into account.
1 parent 5f40394 commit 174a311

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/bootstrap/src/core/config/config.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -1809,14 +1809,7 @@ impl Config {
18091809
}
18101810
target.llvm_config = Some(config.src.join(s));
18111811
}
1812-
if let Some(patches) = cfg.llvm_has_rust_patches {
1813-
assert_eq!(
1814-
config.submodules,
1815-
Some(false),
1816-
"cannot set `llvm-has-rust-patches` for a managed submodule (set `build.submodules = false` if you want to apply patches)"
1817-
);
1818-
target.llvm_has_rust_patches = Some(patches);
1819-
}
1812+
target.llvm_has_rust_patches = cfg.llvm_has_rust_patches;
18201813
if let Some(ref s) = cfg.llvm_filecheck {
18211814
target.llvm_filecheck = Some(config.src.join(s));
18221815
}

0 commit comments

Comments
 (0)