configure: respect CC_host in host arch detection

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: https://github.com/nodejs/node/pull/4117
This commit is contained in:
João Reis 2015-12-02 04:54:02 +00:00
parent 6ca5ea3860
commit 0e3912be0b

2
configure vendored
View File

@ -589,7 +589,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'))
matchup = {
'__aarch64__' : 'arm64',