Skip to content

Commit

Permalink
configure.py: make CC='command with args' work
Browse files Browse the repository at this point in the history
  • Loading branch information
craigschlenter authored and evmar committed Jan 9, 2012
1 parent d9373ff commit 5f56ff1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import os
import glob
import errno
import shlex
import subprocess

def run(*args, **kwargs):
Expand Down Expand Up @@ -66,9 +67,10 @@ def run(*args, **kwargs):
if vcdir:
args = [os.path.join(vcdir, 'bin', 'cl.exe'), '/nologo', '/EHsc', '/DWIN32']
else:
args = [os.environ.get('CXX', 'g++'), '-Wno-deprecated',
'-DNINJA_PYTHON="' + sys.executable + '"',
'-DNINJA_BOOTSTRAP']
args = shlex.split(os.environ.get('CXX', 'g++'))
args.extend(['-Wno-deprecated',
'-DNINJA_PYTHON="' + sys.executable + '"',
'-DNINJA_BOOTSTRAP'])
args.extend(cflags)
args.extend(ldflags)
binary = 'ninja.bootstrap'
Expand Down

0 comments on commit 5f56ff1

Please sign in to comment.