summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSadique Ali <sadiqalikm@gmail.com>2012-02-28 04:26:34 +0530
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-05 16:56:52 +0100
commit707863c1fb13dacb48811b55801cdc83a4726904 (patch)
treee432c5ac65ea062d8231d74785a5f4d66ffc5121 /configure
parentc97b4f1971d79a687f32dd503326bde2bcc25729 (diff)
downloadnode-new-707863c1fb13dacb48811b55801cdc83a4726904.tar.gz
build: make CC command in host check configurable
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 7a44a82821..71756a6cca 100755
--- a/configure
+++ b/configure
@@ -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)