-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated NAIX headers trigger a full source rebuild #200
Comments
I assume this happens due to the header being updated whenever a naix file changes? What about the header depends directly on the contents of naix files? |
For clarity on terminology, a From what I can tell, the core issue is that |
In that case my question would be: When does the file layout of a NARC change? If it can only be changed by editing the build system, maybe it shouldn't be generated as a by-product of actually packing the files into a NARC. Instead it could be generated while setting up the build system (as a configure_file() with a command), or simply without depending on the files to be packed into the NARC. I'm not sure how precompiled headers work, but even if it's excluded, I wonder how much of the codebase would be rebuilt after changing the contents of a NARC. |
Unfortunately, moving the NARC file layout declaration to configuration time doesn't really solve the underlying issue. The full source tree would still be rebuilt if a user added a new file to that NARC. |
Introduced by #198
Steps to Reproduce
Assuming a freshly-cloned repository up-to-date with
main
:./build.sh
.res/battle/scripts/subscripts/subscript_mimic.s
./build.sh
. Observe that the NARC only requestssubscript_mimic
to be rebuilt, but all source-code files are rebuilt afterwards due to the dependency on the generated NAIX.Expected Behavior
Only the following source-code files which explicitly include
battle/scripts/sub_seq.naix
should be rebuilt:The text was updated successfully, but these errors were encountered: