@@ -96,6 +96,7 @@ pub struct Config {
9696 pub rust_debuginfo_tests : bool ,
9797 pub rust_dist_src : bool ,
9898 pub rust_codegen_backends : Vec < Interned < String > > ,
99+ pub rust_codegen_backends_dir : String ,
99100
100101 pub build : Interned < String > ,
101102 pub hosts : Vec < Interned < String > > ,
@@ -289,6 +290,7 @@ struct Rust {
289290 test_miri : Option < bool > ,
290291 save_toolstates : Option < String > ,
291292 codegen_backends : Option < Vec < String > > ,
293+ codegen_backends_dir : Option < String > ,
292294 wasm_syscall : Option < bool > ,
293295}
294296
@@ -330,6 +332,7 @@ impl Config {
330332 config. rust_dist_src = true ;
331333 config. test_miri = false ;
332334 config. rust_codegen_backends = vec ! [ INTERNER . intern_str( "llvm" ) ] ;
335+ config. rust_codegen_backends_dir = "codegen-backends" . to_owned ( ) ;
333336
334337 config. rustc_error_format = flags. rustc_error_format ;
335338 config. on_fail = flags. on_fail ;
@@ -488,6 +491,8 @@ impl Config {
488491 . collect ( ) ;
489492 }
490493
494+ set ( & mut config. rust_codegen_backends_dir , rust. codegen_backends_dir . clone ( ) ) ;
495+
491496 match rust. codegen_units {
492497 Some ( 0 ) => config. rust_codegen_units = Some ( num_cpus:: get ( ) as u32 ) ,
493498 Some ( n) => config. rust_codegen_units = Some ( n) ,
0 commit comments