Browse Source

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
v5.x
João Reis 9 years ago
committed by cjihrig
parent
commit
c836f1a88f
  1. 2
      configure

2
configure

@ -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',

Loading…
Cancel
Save