X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc%2Fbuild.rs;h=39cf3e094c823078212ac4534f3a102a861c3803;hb=28cce683ad9baae9350605549c9b238f4e32c4c7;hp=24c06c0ddbf6cb48c692c2e3e90e18b63fdbc6bb;hpb=2807f28de550fb6074dc4fb2f3099865de01bc1e;p=rust.git diff --git a/compiler/rustc/build.rs b/compiler/rustc/build.rs index 24c06c0ddbf..39cf3e094c8 100644 --- a/compiler/rustc/build.rs +++ b/compiler/rustc/build.rs @@ -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"); } }