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 authored and James M Snell committed 2015-12-17 10:26:30 -08:00
1 parent da8d012c88
commit 1e1173fc5c
1 file changed
+1 -1
Vendored
+1 -1
View File
@@ -575,7 +575,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',