Skip to content

Commit 840d261

Browse files
committed
this is dicy, whether we have a method to explicitly enable_llvm_override
1 parent 8e958ff commit 840d261

File tree

1 file changed

+15
-0
lines changed
  • src/bootstrap/src/utils/tests

1 file changed

+15
-0
lines changed

src/bootstrap/src/utils/tests/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,19 @@ impl ConfigBuilder {
125125

126126
Config::parse(Flags::parse(&self.args))
127127
}
128+
129+
pub fn create_config_without_ci_llvm_override(mut self) -> Config {
130+
// Run in dry-check, otherwise the test would be too slow
131+
self.args.push("--dry-run".to_string());
132+
133+
// Ignore submodules
134+
self.args.push("--set".to_string());
135+
self.args.push("build.submodules=false".to_string());
136+
137+
// Do not mess with the local rustc checkout build directory
138+
self.args.push("--build-dir".to_string());
139+
self.args.push(self.directory.join("build").display().to_string());
140+
141+
Config::parse(Flags::parse(&self.args))
142+
}
128143
}

0 commit comments

Comments
 (0)