chore: Remove rerun-if-changed clause that might cause spurious rebuilds (#4193)

Something is stomping over the timestamp of generated scene.h right
after the build script finishes:
`Dirty gpui v0.1.0 (/Users/someonetoignore/work/zed/zed/crates/gpui):
the file target/debug/build/gpui-ca04eedfe8d0e13c/out/scene.h has
changed (1705922004.637000680s, 1s after last build at
1705922003.507431315s)`
^ That's an output of `-v` flag added to either `cargo run` or `cargo
build`.
This comes up when you do `cargo build` followed by `cargo run` or
another `cargo build`; the artifact is not getting reused, even though
it should be possible?
Release Notes:
- N/A
This commit is contained in:
Piotr Osiewicz 2024-01-28 15:35:53 +01:00 committed by GitHub
parent e38489196d
commit f7b6bfefe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,6 @@ fn compile_metal_shaders(header_path: &Path) {
let air_output_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("shaders.air");
let metallib_output_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("shaders.metallib");
println!("cargo:rerun-if-changed={}", header_path.display());
println!("cargo:rerun-if-changed={}", shader_path);
let output = Command::new("xcrun")