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 authored and cjihrig committed Dec 15, 2015
1 parent cb938aa commit c836f1a
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 c836f1a

Please sign in to comment.