Skip to content

Commit

Permalink
configure: respect CC_host in host arch detection
Browse files Browse the repository at this point in the history
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: #4117
  • Loading branch information
joaocgreis committed Dec 9, 2015
1 parent 6ca5ea3 commit 0e3912b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 0e3912b

Please sign in to comment.