mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
parent
cdda9008a3
commit
db7afeba4e
@ -1526,11 +1526,14 @@ See https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-change
|
|||||||
.collect::<CargoResult<Vec<_>>>()?
|
.collect::<CargoResult<Vec<_>>>()?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let rustflags = build_runner.bcx.rustflags_args(unit).to_vec();
|
||||||
|
|
||||||
Ok(Fingerprint {
|
Ok(Fingerprint {
|
||||||
local: Mutex::new(local),
|
local: Mutex::new(local),
|
||||||
rustc: util::hash_u64(&build_runner.bcx.rustc().verbose_version),
|
rustc: util::hash_u64(&build_runner.bcx.rustc().verbose_version),
|
||||||
deps,
|
deps,
|
||||||
outputs: if overridden { Vec::new() } else { vec![output] },
|
outputs: if overridden { Vec::new() } else { vec![output] },
|
||||||
|
rustflags,
|
||||||
|
|
||||||
// Most of the other info is blank here as we don't really include it
|
// Most of the other info is blank here as we don't really include it
|
||||||
// in the execution of the build script, but... this may be a latent
|
// in the execution of the build script, but... this may be a latent
|
||||||
|
@ -5578,6 +5578,9 @@ fn build_script_rerun_when_target_rustflags_change() {
|
|||||||
[RUNNING] [..]
|
[RUNNING] [..]
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
.with_stdout("")
|
.with_stdout(
|
||||||
|
"\
|
||||||
|
hello",
|
||||||
|
)
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user