We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cargo_target_dir
1 parent 9aa01ca commit c860ac4Copy full SHA for c860ac4
build_system/src/config.rs
@@ -446,9 +446,7 @@ impl ConfigInfo {
446
));
447
let ld_library_path = format!(
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(),
+ target = self.cargo_target_dir,
452
sysroot = sysroot.display(),
453
gcc_path = self.gcc_path,
454
);
@@ -473,7 +471,7 @@ impl ConfigInfo {
473
471
self.rustc_command.extend_from_slice(&rustflags);
474
472
self.rustc_command.extend_from_slice(&[
475
"-L".to_string(),
476
- "crate=target/out".to_string(),
+ format!("crate={}", self.cargo_target_dir),
477
"--out-dir".to_string(),
478
self.cargo_target_dir.clone(),
479
]);
0 commit comments