From 1e1173fc5cbf22ee75b4d9510cd19d77c62664a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 2 Dec 2015 04:54:02 +0000 Subject: [PATCH] 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 Reviewed-By: James M Snell PR-URL: https://github.com/nodejs/node/pull/4117 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 87e2a8c22b6..bfdc2697c07 100755 --- a/configure +++ b/configure @@ -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',