summaryrefslogtreecommitdiffstats
path: root/bootstrap.py
diff options
context:
space:
mode:
authorBen Vanik <ben.vanik@gmail.com>2013-02-20 06:28:26 (GMT)
committerBen Vanik <ben.vanik@gmail.com>2013-02-20 06:28:26 (GMT)
commit5f36d1047186d02905530c66ce6a21c5a245a813 (patch)
tree0ae7952fed8e21ce4a453fede6567e345ee4e3cc /bootstrap.py
parente758e8d0e014c1442ab5973541a3a1cc59dc97cb (diff)
downloadNinja-5f36d1047186d02905530c66ce6a21c5a245a813.zip
Ninja-5f36d1047186d02905530c66ce6a21c5a245a813.tar.gz
Ninja-5f36d1047186d02905530c66ce6a21c5a245a813.tar.bz2
Add a check for the VC++ 2012-style 64-bit path.
In VS2012 the path to the 64-bit tools has changed to VCINSTALLDIR\bin\x86_amd64\cl.exe. This change will make the bootstrap check there to see if it exists before falling back to the old amd64 path.
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-xbootstrap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 331ea0f..fcf1a20 100755
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -85,7 +85,9 @@ if options.windows:
vcdir = os.environ.get('VCINSTALLDIR')
if vcdir:
if options.x64:
- cl = [os.path.join(vcdir, 'bin', 'amd64', 'cl.exe')]
+ cl = [os.path.join(vcdir, 'bin', 'x86_amd64', 'cl.exe')]
+ if not os.path.exists(cl[0]):
+ cl = [os.path.join(vcdir, 'bin', 'amd64', 'cl.exe')]
else:
cl = [os.path.join(vcdir, 'bin', 'cl.exe')]
args = cl + ['/nologo', '/EHsc', '/DNOMINMAX']