summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJoão Reis <reis@janeasystems.com>2015-12-02 04:54:02 +0000
committerJoão Reis <reis@janeasystems.com>2015-12-09 14:48:59 +0000
commit0e3912be0b92db6b920cad8ef0024389c7f3aae0 (patch)
tree936dd8324669127f7f16be9e4161d654ffcf4685 /configure
parent6ca5ea38602c07260bf422b0ae97f7f8160e661a (diff)
downloadandroid-node-v8-0e3912be0b92db6b920cad8ef0024389c7f3aae0.tar.gz
android-node-v8-0e3912be0b92db6b920cad8ef0024389c7f3aae0.tar.bz2
android-node-v8-0e3912be0b92db6b920cad8ef0024389c7f3aae0.zip
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 811303ed45..10ca4d6a35 100755
--- a/configure
+++ b/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',