File tree 1 file changed +2
-4
lines changed
compiler/rustc_codegen_gcc/build_system/src
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -446,9 +446,7 @@ impl ConfigInfo {
446
446
) ) ;
447
447
let ld_library_path = format ! (
448
448
"{target}:{sysroot}:{gcc_path}" ,
449
- // FIXME: It's possible to pick another out directory. Would be nice to have a command
450
- // line option to change it.
451
- target = current_dir. join( "target/out" ) . display( ) ,
449
+ target = self . cargo_target_dir,
452
450
sysroot = sysroot. display( ) ,
453
451
gcc_path = self . gcc_path,
454
452
) ;
@@ -473,7 +471,7 @@ impl ConfigInfo {
473
471
self . rustc_command . extend_from_slice ( & rustflags) ;
474
472
self . rustc_command . extend_from_slice ( & [
475
473
"-L" . to_string ( ) ,
476
- "crate=target/out" . to_string ( ) ,
474
+ format ! ( "crate={}" , self . cargo_target_dir ) ,
477
475
"--out-dir" . to_string ( ) ,
478
476
self . cargo_target_dir . clone ( ) ,
479
477
] ) ;
You can’t perform that action at this time.
0 commit comments