Skip to content

Commit 0e3912b

Browse files
committed
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> PR-URL: #4117
1 parent 6ca5ea3 commit 0e3912b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def host_arch_cc():
589589
# would be xlc so hard code gcc
590590
k = cc_macros('gcc')
591591
else:
592-
k = cc_macros()
592+
k = cc_macros(os.environ.get('CC_host'))
593593

594594
matchup = {
595595
'__aarch64__' : 'arm64',

0 commit comments

Comments
 (0)