-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Currently any use rerun-if-changed opts in entire build into a completely "manual" tracking, disabling all built-in rules as a side effect. This means it's not possible to safely just add one file/env var check to the build without understanding all the dependencies of the entire build script.
In order to use rerun-if-changed features in build-time libraries without potentially breaking rest of the build, it's necessary to be able to use rerun-if-changed-like functionality without disabling the built-in heuristic (i.e. rerun if a var/file has changed in addition to all the other/default conditions that cause the build to be rebuilt).
rust-lang/pkg-config-rs#45 (comment)
bikeshed syntax: cargo:rerun-if-also-changed=file
, cargo:rerun-if-changed+=file
, cargo:rerun-if-changed;keep-defaults=file