Skip to content
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

configure: respect CC_host in host arch detection #4117

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

joaocgreis
Copy link
Member

When cross compiling, GYP uses the variables CC_host and CXX_host to find the host compiler, if they are defined. This ensures that variable is used, if defined, when detecting the host architecture.

This is necessary to be able to cross compile for ARM, unblocking #3962 and nodejs/build#266 . Snapshots can be re-enabled for ARM on CI when this lands.

cc @nodejs/build

@joaocgreis joaocgreis added build Issues and PRs related to build files or the CI. lts-watch-v4.x labels Dec 2, 2015
@@ -583,7 +583,7 @@ def host_arch_cc():
# would be xlc so hard code gcc
k = cc_macros('gcc')
else:
k = cc_macros()
k = cc_macros(os.environ.get('CC_host', None))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop the second argument, None is the default value when the key is not found. LGTM apart from that.

@jasnell
Copy link
Member

jasnell commented Dec 3, 2015

LGTM

@joaocgreis
Copy link
Member Author

Updated, thanks for the reviews! Will land Tuesday if there are no further comments.

@joaocgreis
Copy link
Member Author

When cross compiling, GYP uses the variables CC_host and CXX_host to
find the host compiler, if they are defined. This ensures that
variable is used, if defined, when detecting the host architecture.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#4117
@joaocgreis joaocgreis merged commit 0e3912b into nodejs:master Dec 9, 2015
joaocgreis added a commit that referenced this pull request Dec 9, 2015
When cross compiling, GYP uses the variables CC_host and CXX_host to
find the host compiler, if they are defined. This ensures that
variable is used, if defined, when detecting the host architecture.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #4117
@joaocgreis
Copy link
Member Author

Landed in v4.x-staging in d1b51bd

joaocgreis added a commit that referenced this pull request Dec 15, 2015
When cross compiling, GYP uses the variables CC_host and CXX_host to
find the host compiler, if they are defined. This ensures that
variable is used, if defined, when detecting the host architecture.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #4117
@jasnell jasnell mentioned this pull request Dec 17, 2015
joaocgreis added a commit that referenced this pull request Dec 17, 2015
When cross compiling, GYP uses the variables CC_host and CXX_host to
find the host compiler, if they are defined. This ensures that
variable is used, if defined, when detecting the host architecture.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #4117
joaocgreis added a commit that referenced this pull request Dec 23, 2015
When cross compiling, GYP uses the variables CC_host and CXX_host to
find the host compiler, if they are defined. This ensures that
variable is used, if defined, when detecting the host architecture.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #4117
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
When cross compiling, GYP uses the variables CC_host and CXX_host to
find the host compiler, if they are defined. This ensures that
variable is used, if defined, when detecting the host architecture.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#4117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants