Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upnothing is rebuilt when the directory is modified #31
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm... I'm not sure how we'd solve this. As far as I'm aware, a proc macro can't emit the usual "rerun if changed" messages so there isn't really a mechanism for re-executing the macro without that file being recompiled by rustc. Ideally the |
This comment has been minimized.
This comment has been minimized.
|
Hmm, I am uncertain that the cargo flags are the right fit for this since proc macros are expanded by |
ExpHP
added a commit
to ExpHP/include_dir
that referenced
this issue
Sep 1, 2018
This comment has been minimized.
This comment has been minimized.
|
I've created a thread on the internals forum, let's see what other people think. If possible, it'd be cool to emit a |
ExpHP commentedAug 27, 2018
•
edited
Summary: Changes to the included directory are not tracked by rustc, and nothing is rebuilt unless an actual rust source file is changed (or the user must add a
build.rsthat recursively walks the directory to printcargo:rerun-if-changed=directives). This is in contrast to what was written in the closing comment on #25 back in2017June.Script:
Bash script
Output:
Expected Output: