diff options
author | Craig Schlenter <craig.schlenter@gmail.com> | 2012-01-09 15:57:20 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-09 15:57:20 (GMT) |
commit | 5f56ff1fc1ef7d0d5db24093397a2ae10015dd2b (patch) | |
tree | 5a6a755e911a273ca5aab020dd3a3410c1673ab0 /bootstrap.py | |
parent | d9373ff17c49cb5d913d38ef0ed3efa8a11ca6df (diff) | |
download | Ninja-5f56ff1fc1ef7d0d5db24093397a2ae10015dd2b.zip Ninja-5f56ff1fc1ef7d0d5db24093397a2ae10015dd2b.tar.gz Ninja-5f56ff1fc1ef7d0d5db24093397a2ae10015dd2b.tar.bz2 |
configure.py: make CC='command with args' work
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-x | bootstrap.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bootstrap.py b/bootstrap.py index 2622075..0040609 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -17,6 +17,7 @@ import sys import os import glob import errno +import shlex import subprocess def run(*args, **kwargs): @@ -66,9 +67,10 @@ vcdir = os.environ.get('VCINSTALLDIR') 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' |