From 7ce8c2a1f1236ed747d989c0ccfd9ea756ef8f2c Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 8 Aug 2023 08:21:54 +0100 Subject: [PATCH] build: remove redundant rerun-if-changed for compiler snapshot (#20094) Not sure why `40_testing.js` is there. The other two `00_typescript.js` and `99_main_compiler.js` should be covered by `files_loaded_during_snapshot` at the end. This helps with `__runtime_js_sources` wrt changing `40_testing.js`. --- cli/build.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cli/build.rs b/cli/build.rs index 206c80d1e8..679952726b 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -224,18 +224,6 @@ mod ts { path_dts.join(format!("lib.{name}.d.ts")).display() ); } - println!( - "cargo:rerun-if-changed={}", - cwd.join("tsc").join("00_typescript.js").display() - ); - println!( - "cargo:rerun-if-changed={}", - cwd.join("tsc").join("99_main_compiler.js").display() - ); - println!( - "cargo:rerun-if-changed={}", - cwd.join("js").join("40_testing.js").display() - ); // create a copy of the vector that includes any op crate libs to be passed // to the JavaScript compiler to build into the snapshot