File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/bootstrap/src/utils/tests Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use tempfile::TempDir;
77
88use crate :: core:: builder:: Builder ;
99use crate :: core:: config:: DryRun ;
10+ use crate :: utils:: helpers:: get_host_target;
1011use crate :: { Build , Config , Flags , t} ;
1112
1213pub mod git;
@@ -91,6 +92,13 @@ impl ConfigBuilder {
9192 self . args . push ( "--set" . to_string ( ) ) ;
9293 self . args . push ( "build.submodules=false" . to_string ( ) ) ;
9394
95+ // Override any external LLVM set and inhibit CI LLVM; pretend that we're always building
96+ // in-tree LLVM from sources.
97+ self . args . push ( "--set" . to_string ( ) ) ;
98+ self . args . push ( "llvm.download-ci-llvm=false" . to_string ( ) ) ;
99+ self . args . push ( "--set" . to_string ( ) ) ;
100+ self . args . push ( format ! ( "target.'{}'.llvm-config=false" , get_host_target( ) ) ) ;
101+
94102 // Do not mess with the local rustc checkout build directory
95103 self . args . push ( "--build-dir" . to_string ( ) ) ;
96104 self . args . push ( self . directory . join ( "build" ) . display ( ) . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments