diff options
author | Petr Wolf <wolfpetr@linux32-dev.(none)> | 2012-03-16 12:59:28 (GMT) |
---|---|---|
committer | Petr Wolf <wolfpetr@linux32-dev.(none)> | 2012-03-16 12:59:28 (GMT) |
commit | 5359825552a56322ee3a85c0fbd316440f3322be (patch) | |
tree | 3b776d8dd675396fb633a3d78a89e953049084d9 /bootstrap.py | |
parent | fdec96f54e92d2990ebf1ba5434b317d3d8ad49d (diff) | |
download | Ninja-5359825552a56322ee3a85c0fbd316440f3322be.zip Ninja-5359825552a56322ee3a85c0fbd316440f3322be.tar.gz Ninja-5359825552a56322ee3a85c0fbd316440f3322be.tar.bz2 |
Add NOMINMAX macro to fix a compilation error on Win32
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-x | bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py index ca47b19..9d00ca8 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -65,7 +65,7 @@ if sys.platform.startswith('win32'): vcdir = os.environ.get('VCINSTALLDIR') if vcdir: - args = [os.path.join(vcdir, 'bin', 'cl.exe'), '/nologo', '/EHsc'] + args = [os.path.join(vcdir, 'bin', 'cl.exe'), '/nologo', '/EHsc', '/DNOMINMAX'] else: args = shlex.split(os.environ.get('CXX', 'g++')) args.extend(['-Wno-deprecated', |