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:
parent
6ca5ea3860
commit
0e3912be0b
2
configure
vendored
2
configure
vendored
@ -589,7 +589,7 @@ def host_arch_cc():
|
|||||||
# would be xlc so hard code gcc
|
# would be xlc so hard code gcc
|
||||||
k = cc_macros('gcc')
|
k = cc_macros('gcc')
|
||||||
else:
|
else:
|
||||||
k = cc_macros()
|
k = cc_macros(os.environ.get('CC_host'))
|
||||||
|
|
||||||
matchup = {
|
matchup = {
|
||||||
'__aarch64__' : 'arm64',
|
'__aarch64__' : 'arm64',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user