Skip to content
Myr

Merge pull request #249 from RalfJung/rustc-target

Before adoption: this commit came in with the history the project adopted, so no landing records it.

propagate --target to rustc invocation

authored by David Tolnay · committed by GitHub · parents db32585, da28e88 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:build.rs+5 added-1 removed
69 unmodified lines
70 let probefile = Path::new(&out_dir).join("probe.rs");71 fs::write(&probefile, PROBE).ok()?;7273 // Make sure to pick up Cargo rustc configuration.74 let mut cmd = if let Some(wrapper) = env::var_os("CARGO_RUSTC_WRAPPER") {74 let mut cmd = if let Some(wrapper) = env::var_os("RUSTC_WRAPPER") {75 let mut cmd = Command::new(wrapper);76 // The wrapper's first argument is supposed to be the path to rustc.77 cmd.arg(rustc);78 cmd
9 unmodified lines
88 .arg("--out-dir")89 .arg(out_dir)90 .arg(probefile);9192 if let Some(target) = env::var_os("TARGET") {93 cmd.arg("--target").arg(target);94 }9596 // If Cargo wants to set RUSTFLAGS, use that.97 if let Ok(rustflags) = env::var("CARGO_ENCODED_RUSTFLAGS") {98 if !rustflags.is_empty() {99 for arg in rustflags.split('\x1f') {
18 unmodified lines