From 0e3912be0b92db6b920cad8ef0024389c7f3aae0 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 811303ed452d7f..10ca4d6a3552be 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',