wasm-builder: Fix constant re-running of build.rs scripts. (#11624)

Recently we added the wasm binaries to the `rerun-if-changed` list. The problem with that is that
they have a later mtime than the `invoked.timestamp` file and this file's mtime is used to determine
if the `build.rs` script needs to be re-run. The solution to this is that we copy the mtime of this
`invoked.timestamp` file and add it to the wasm binaries. Then cargo/rustc doesn't constantly wants
to rerun the `build.rs` script.
This commit is contained in:
Bastian Köcher
2022-06-14 11:21:44 +02:00
committed by GitHub
parent 6dd3d00cf3
commit d70d58922e
3 changed files with 46 additions and 0 deletions
+1
View File
@@ -22,3 +22,4 @@ toml = "0.5.4"
walkdir = "2.3.2"
wasm-gc-api = "0.1.11"
sp-maybe-compressed-blob = { version = "4.1.0-dev", path = "../../primitives/maybe-compressed-blob" }
filetime = "0.2.16"