aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-08-10 12:45:39 -0700
committerEvan Martin <martine@danga.com>2012-08-10 12:45:39 -0700
commitd98ba72ef8adfb1698b8de197de6751c8b14d5c0 (patch)
tree552e0e75e12f9fce33a80dc87adecc08f21f1c5a /bootstrap.py
parent45ca47e10bb4ef3b220a097f324a83daa4f63e94 (diff)
downloadninja-d98ba72ef8adfb1698b8de197de6751c8b14d5c0.tar.gz
refactor
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-xbootstrap.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bootstrap.py b/bootstrap.py
index e2aa866..7b6e781 100755
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -77,11 +77,10 @@ if sys.platform.startswith('win32'):
vcdir = os.environ.get('VCINSTALLDIR')
if vcdir:
if options.x64:
- args = [os.path.join(vcdir, 'bin', 'amd64', 'cl.exe'),
- '/nologo', '/EHsc', '/DNOMINMAX']
+ cl = os.path.join(vcdir, 'bin', 'amd64', 'cl.exe'),
else:
- args = [os.path.join(vcdir, 'bin', 'cl.exe'),
- '/nologo', '/EHsc', '/DNOMINMAX']
+ cl = [os.path.join(vcdir, 'bin', 'cl.exe')
+ args = cl + ['/nologo', '/EHsc', '/DNOMINMAX']
else:
args = shlex.split(os.environ.get('CXX', 'g++'))
cflags.extend(['-Wno-deprecated',