configure: use __ARM_ARCH to determine arm version#4123
Merged
joaocgreis merged 1 commit intonodejs:masterfrom Dec 9, 2015
Merged
configure: use __ARM_ARCH to determine arm version#4123joaocgreis merged 1 commit intonodejs:masterfrom
joaocgreis merged 1 commit intonodejs:masterfrom
Conversation
configure
Outdated
Member
There was a problem hiding this comment.
You could simplify this to return cc_macros_cache.get('__ARM_ARCH') == '7'.
Member
|
LGTM with a comment. |
Contributor
|
@joaocgreis Not aware of such, no. |
Member
ff3b1f0 to
8dabc4d
Compare
Member
Author
|
Updated, thanks for the reviews! Will land Tuesday if there are no further comments. |
Member
Author
|
Note: |
Member
|
|
Before this change, configure used processor specific macro defines (like __ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use __ARM_ARCH, that should be defined to the correct version. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: nodejs#4123
8dabc4d to
a7f5dfd
Compare
joaocgreis
added a commit
that referenced
this pull request
Dec 9, 2015
Before this change, configure used processor specific macro defines (like __ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use __ARM_ARCH, that should be defined to the correct version. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: #4123
Member
Author
|
Landed in |
joaocgreis
added a commit
that referenced
this pull request
Dec 15, 2015
Before this change, configure used processor specific macro defines (like __ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use __ARM_ARCH, that should be defined to the correct version. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: #4123
Closed
joaocgreis
added a commit
that referenced
this pull request
Dec 17, 2015
Before this change, configure used processor specific macro defines (like __ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use __ARM_ARCH, that should be defined to the correct version. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: #4123
joaocgreis
added a commit
that referenced
this pull request
Dec 23, 2015
Before this change, configure used processor specific macro defines (like __ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use __ARM_ARCH, that should be defined to the correct version. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: #4123
scovetta
pushed a commit
to scovetta/node
that referenced
this pull request
Apr 2, 2016
Before this change, configure used processor specific macro defines (like __ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use __ARM_ARCH, that should be defined to the correct version. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: nodejs#4123
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.
Before this change, configure used processor specific macro defines (like
__ARM_ARCH_6M__) to detect the arm processor version. This changes configure to use__ARM_ARCH, that should be defined to the correct version.This is useful because configure may not expect the flag for a specific processor. Currently, if trying to cross compile optimizing to the Raspberry Pi 1 processor with
-mcpu=arm1176jzf-sthe detectedarm_versionwill bedefault(because it sets__ARM_ARCH_6ZK__), and the generated binaries useless in that processor.@nodejs/platform-arm ARM processors currently on CI are ok with this change, but could there be some other processor or compiler that does not set
__ARM_ARCHor sets it to something that we do not want? @mmalecki you authored the original function, do you know of any problem with this? (Thanks!)cc @nodejs/build
For reference: