Makefile.include: only keep macros in riotbuild.h#12348
Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom Oct 1, 2019
Merged
Makefile.include: only keep macros in riotbuild.h#12348kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
Conversation
Contributor
|
There's a typo in the commit message ;) |
Rely on creating an intermediate riotbuild.h.in file that is updated on CFLAGS changes, but then generate 'riotbuild.h' without the comments. The updated timestamp will still trigger a rebuild but not cause ccache miss due to the content of the CFLAGS that contains absolute path. This removes the caching issue due to the absolute path that was added to `CFLAGS` and so the comment in that file.
0af1161 to
3bfe30a
Compare
Contributor
Author
|
Fixed, I only re-read the content and not the title >< |
Contributor
This seems to recover the caching situation. Tihs PR: This PR's mergebase: Something else is off, two days ago there were 15k less files and ~50MB less data in cache after one build. But I think that's unrelated. |
kaspar030
approved these changes
Oct 1, 2019
Contributor
kaspar030
left a comment
There was a problem hiding this comment.
ACK.
Recovers Murdock caching to previous levels. sed'ing out the comment seems an OK solution.
Contributor
Author
|
Thanks for the review. I will do a test with removing completely the macros from that file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
Rely on creating an intermediate riotbuild.h.in file that is updated on
CFLAGS changes, but then generate 'riotbuild.h' without the comments.
The updated timestamp will still trigger a rebuild but not cause ccache
miss due to the content of the CFLAGS that contains absolute path.
This removes the caching issue due to the absolute path that was
added to
CFLAGSand so the comment in that file.Testing procedure
Low level testing procedure
The file
riotbuild.hdoes not contain any absolute path anymore in a comment.File is not updated on rebuilding the same thing but is on
CFLAGSchange:The output shows that on the first rebuild, both the header and the object were not changed, but on the rebuild with a different CFLAGS, it was rebuild despite still having the same content in
riotbuild.h.The file content is the same as before without the `CFLAGS` comment:
High level testing procedure
Changing a macro like the
RIOT_VERSIONwithout cleaning still re-builds:Hello-world with different RIOT_VERSION
And then just after
Caching impact
@kaspar030 testing procedure for the caching
Issues/PRs references
#12262 (comment)