-
Notifications
You must be signed in to change notification settings - Fork 127
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
A handful of improvements related to cross compiling #562
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0107aa5
Fix up some compiler warnings related to prototypes
agoode 659e0d2
Fix "unused function" warning in gc/profiling.h
agoode c1a7109
Automatically detect various rounding modes
agoode 4d05837
Store some target-specific variables in $TARGET/vars
agoode 21d94b8
Add install-runtime to Makefile
agoode f39bec2
Always pass flags to mlton in bin/regression
agoode 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
#include "platform.h" | ||
|
||
const C_Int_t IEEEReal_RoundingMode_FE_NOSUPPORT = FE_NOSUPPORT; | ||
|
||
#ifdef FE_TONEAREST | ||
const C_Int_t IEEEReal_RoundingMode_FE_TONEAREST = FE_TONEAREST; | ||
#else | ||
const C_Int_t IEEEReal_RoundingMode_FE_TONEAREST = FE_NOSUPPORT; | ||
#endif | ||
|
||
#ifdef FE_DOWNWARD | ||
const C_Int_t IEEEReal_RoundingMode_FE_DOWNWARD = FE_DOWNWARD; | ||
const C_Int_t IEEEReal_RoundingMode_FE_NOSUPPORT = FE_NOSUPPORT; | ||
#else | ||
const C_Int_t IEEEReal_RoundingMode_FE_DOWNWARD = FE_NOSUPPORT; | ||
#endif | ||
|
||
#ifdef FE_UPWARD | ||
const C_Int_t IEEEReal_RoundingMode_FE_UPWARD = FE_UPWARD; | ||
#else | ||
const C_Int_t IEEEReal_RoundingMode_FE_UPWARD = FE_NOSUPPORT; | ||
#endif | ||
|
||
#ifdef FE_TOWARDZERO | ||
const C_Int_t IEEEReal_RoundingMode_FE_TOWARDZERO = FE_TOWARDZERO; | ||
#else | ||
const C_Int_t IEEEReal_RoundingMode_FE_TOWARDZERO = FE_NOSUPPORT; | ||
#endif |
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
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
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.
Since
CC
andGMP_*_DIR
variables are set via$(LIB)/targets/$(TARGET)/vars
rather than directly in themlton
script, then a corresponding changes should be made to theMakefile.binary
(https://github.com/MLton/mlton/blob/master/Makefile.binary#L69-L73), which allows for customizing those values when updating/installing a binary release. That can assume thatTARGET
isself
.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.
Thanks, I've updated Makefile.binary.
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.
I don't think that is quite right. The
Makefile.binary
is copied into a binary release asMakefile
to facilitate updating and installing a binary release. In particular, one uses theupdate
target to adjust things likeCC
andGMP_LIB
if they are different on the client machine than on the build machine. For example, one might do something likemake CC=/path/to/clang update
if the defaultcc
isn't a suitable C compiler on the client machine.So, I think the diff to
Makefile.binary
is more like: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.
Ah! Thank you. I had it 100% backwards. It should be good now.