Fixed MacOS-specific handling for x86_64 or arm64#127
Merged
Conversation
src/Makefile - Now print the value of SYSTEM_M variable in "make list" target - Trimmed trailing whitespace src/Makefile.defs - Now use the $(strip) function when testing the values of SYSTEM and SYSTEM_M. This will make sure that trailing whitespace is removed. This was affecting the string equality tests. - Add option "-arch x86_64" if compiling on Intel x86_64 chipsets - Add option "-arch arm64" if compiling on Apple Silicon chipsets - Trimmed trailing whitespace CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca <[email protected]>
Contributor
|
@HartwigHarder: Can you please check if this works for you? |
|
works on my system (M2) |
RolfSander
approved these changes
Feb 19, 2025
Contributor
RolfSander
left a comment
There was a problem hiding this comment.
As it works for @HartwigHarder, I'm happy to approve :-)
Contributor
Author
|
Thanks @RolfSander and @HartwigHarder, I'll merge this in. |
yantosca
added a commit
that referenced
this pull request
Feb 19, 2025
docs/source/getting_started/00_revision_history.rst - Added a line to KPP 3.2.0 about MacOS architecture specific build compiler flags Signed-off-by: Bob Yantosca <[email protected]>
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.
This is the companion PR to #126, in which we do the following:
$(strip )command to trim trailing whitespace before testing the values of variablesSYSTEMandSYSTEM_Mfor string equality. Trailing whitespace was causing the string equality tests to fail.-arch x86_64toCC_FLAGSif compiling on MacOS with Linux x86_64 chipsets-arch arm64toCC_FLAGSif compiling on MacOS with Apple Silicon chipsetsAs you can see the Mac-specific options are now added:
Tagging @HartwigHarder