mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Don't rerun the build script for the compiler each time on linux
In practice, this doesn't matter very much because the script takes ~no time to run. But this makes `CARGO_LOG=info` easier to read, and theoretically saves a few milliseconds.
This commit is contained in:
parent
c396bb3b8a
commit
033a025b10
@ -5,6 +5,9 @@ fn main() {
|
||||
let target_env = env::var("CARGO_CFG_TARGET_ENV");
|
||||
if Ok("windows") == target_os.as_deref() && Ok("msvc") == target_env.as_deref() {
|
||||
set_windows_exe_options();
|
||||
} else {
|
||||
// Avoid rerunning the build script every time.
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user