diff options
| author | bit-aloo <sshourya17@gmail.com> | 2025-09-16 21:20:14 +0530 |
|---|---|---|
| committer | bit-aloo <sshourya17@gmail.com> | 2025-09-21 20:56:12 +0530 |
| commit | a29474d3ff06660071ebb5f071a7cdce0ee07646 (patch) | |
| tree | fa5edcbf08dee6ea544852befa9a02fbd13e5a46 /src/bootstrap | |
| parent | 05131bd5f11812390018dddc29fb9a36c4657ed2 (diff) | |
| download | rust-a29474d3ff06660071ebb5f071a7cdce0ee07646.tar.gz rust-a29474d3ff06660071ebb5f071a7cdce0ee07646.zip | |
this is dicy, whether we have a method to explicitly enable_llvm_override
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/utils/tests/mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bootstrap/src/utils/tests/mod.rs b/src/bootstrap/src/utils/tests/mod.rs index ff84bfdb4cd..d47a224d7af 100644 --- a/src/bootstrap/src/utils/tests/mod.rs +++ b/src/bootstrap/src/utils/tests/mod.rs @@ -125,4 +125,19 @@ impl ConfigBuilder { Config::parse(Flags::parse(&self.args)) } + + pub fn create_config_without_ci_llvm_override(mut self) -> Config { + // Run in dry-check, otherwise the test would be too slow + self.args.push("--dry-run".to_string()); + + // Ignore submodules + self.args.push("--set".to_string()); + self.args.push("build.submodules=false".to_string()); + + // Do not mess with the local rustc checkout build directory + self.args.push("--build-dir".to_string()); + self.args.push(self.directory.join("build").display().to_string()); + + Config::parse(Flags::parse(&self.args)) + } } |
