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
process-exit-stdio-flushing
João Reis 9 years ago
parent
commit
0e3912be0b
  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