-
Notifications
You must be signed in to change notification settings - Fork 268
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
Fixing Build Regression [BISON] #892
Merged
+10
−3
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
db34c27
Run make all before compiling base image.
seanmorris 1a80342
Simplifying Makefile.
seanmorris 8b8d60b
Reverting artifacts.
seanmorris 9df50ac
Reverting artifacts.
seanmorris 3a0548f
Merge branch 'trunk' into sm-make-deps-before-compile
seanmorris c4cfd1e
Reverting artifacts.
seanmorris fcb65d3
Makefile comment.
seanmorris c8574a8
Redacting
seanmorris 5601da8
Make all.
seanmorris 15cca11
Resorting makefile.
seanmorris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do all of these need to be
.PHONY
? I wouldn't ask other than it seems like this patch is now adding that property to the targets, and it wasn't there before.of course, adding
.PHONY
will ensure they're built every time we runmake
, but particularly for the libraries likelibpng16
andlibzip
it seems like we could be more efficient in general if we based the build on some deterministic element like a version number, build architecture, or source files, etc…I guess the important question is whether you found something in this PR that was broken because dependencies didn't get rebuilt when they should have. if that's the case then
.PHONY
seems like a fair addition; if not, maybe we let it stay the way it was and address that separately.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Makefile should have originally listed these targets as
.PHONY
because the names being used are the same as the directories in which the actual artifacts lie. Unintentionally, if that directory has a modification date newer than its dependencies, it would then INCORRECTLY be marked as cached and skipped. Adding the.PHONY
target instructs Make to skip looking at the directory modification time and instead look at the listed dependencies only.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. This makes more sense now, as I didn't realize that the directories of the same name as the phony targets existed (because I hadn't looked that deeply outside of the diff).
Let's make sure to add this in the commit description, that this fixes a bug we already had, wherein the
.PHONY
should have always been there.