dtolnay / rustversion

Conditional compilation according to rustc compiler version
Apache License 2.0
336 stars 15 forks source link

When to rerun if a source file changed #45

Closed hkBst closed 6 months ago

hkBst commented 8 months ago

Current rerun-if directives include just the build/build.rs file itself, but not its cousin build/rustc.rs. Shouldn't the entire build directory be used instead? That way cargo will rerun if any of the files in build/ changes.

dtolnay commented 6 months ago

I believe this already works correctly as currently implemented. If you are able to demonstrate the build script not being recompiled and rerun after a rustc.rs change, please share it.