@@ -96,6 +96,7 @@ pub struct Config {
96
96
pub rust_debuginfo_tests : bool ,
97
97
pub rust_dist_src : bool ,
98
98
pub rust_codegen_backends : Vec < Interned < String > > ,
99
+ pub rust_codegen_backends_dir : String ,
99
100
100
101
pub build : Interned < String > ,
101
102
pub hosts : Vec < Interned < String > > ,
@@ -289,6 +290,7 @@ struct Rust {
289
290
test_miri : Option < bool > ,
290
291
save_toolstates : Option < String > ,
291
292
codegen_backends : Option < Vec < String > > ,
293
+ codegen_backends_dir : Option < String > ,
292
294
wasm_syscall : Option < bool > ,
293
295
}
294
296
@@ -330,6 +332,7 @@ impl Config {
330
332
config. rust_dist_src = true ;
331
333
config. test_miri = false ;
332
334
config. rust_codegen_backends = vec ! [ INTERNER . intern_str( "llvm" ) ] ;
335
+ config. rust_codegen_backends_dir = "codegen-backends" . to_owned ( ) ;
333
336
334
337
config. rustc_error_format = flags. rustc_error_format ;
335
338
config. on_fail = flags. on_fail ;
@@ -488,6 +491,8 @@ impl Config {
488
491
. collect ( ) ;
489
492
}
490
493
494
+ set ( & mut config. rust_codegen_backends_dir , rust. codegen_backends_dir . clone ( ) ) ;
495
+
491
496
match rust. codegen_units {
492
497
Some ( 0 ) => config. rust_codegen_units = Some ( num_cpus:: get ( ) as u32 ) ,
493
498
Some ( n) => config. rust_codegen_units = Some ( n) ,
0 commit comments