Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zed: Fix unnecessary rebuilds of the main binary on windows (#43979)
Lukas Wirth876b25808888
diff --git a/crates/zed/build.rs b/crates/zed/build.rsindex e9316dc30c3..dd26a1152e9 100644--- a/crates/zed/build.rs+++ b/crates/zed/build.rs@@ -54,8 +54,8 @@ fn main() {}if cfg!(target_arch = "x86_64") {- println!("cargo::rerun-if-changed=\\..\\..\\..\\conpty.dll");- println!("cargo::rerun-if-changed=\\..\\..\\..\\OpenConsole.exe");+ println!("cargo::rerun-if-changed=resources\\windows\\bin\\x64\\conpty.dll");+ println!("cargo::rerun-if-changed=resources\\windows\\bin\\x64\\OpenConsole.exe");let conpty_target = std::env::var("OUT_DIR").unwrap() + "\\..\\..\\..\\conpty.dll";match std::fs::copy("resources/windows/bin/x64/conpty.dll", &conpty_target) {Ok(_) => println!("Copied conpty.dll to {conpty_target}"),