Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: make CC command in host check configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
sdqali authored and bnoordhuis committed Mar 5, 2012
1 parent c97b4f1 commit 707863c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configure
Expand Up @@ -147,8 +147,7 @@ def pkg_config(pkg):
def host_arch():
"""Host architecture. One of arm, ia32 or x64."""

# TODO better/configurable way of getting the proper 'cc' command?
cc = [ 'cc' ]
cc = [os.environ.get('CC', 'cc')]

cmd = cc + [ '-dM', '-E', '-' ]
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 707863c

Please sign in to comment.