aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-07-27 10:01:53 -0700
committerEvan Martin <martine@danga.com>2012-07-27 10:20:16 -0700
commitce7e2b2171c82fe2b8649afea852d272d1abcbcd (patch)
tree7c53f18fbfafe9a806067a944d429d22442d9e13 /bootstrap.py
parentadadf71e8f7df63371e5362bd65f1f1adc616e61 (diff)
downloadninja-ce7e2b2171c82fe2b8649afea852d272d1abcbcd.tar.gz
bootstrap: set _WIN32_WINNT to WinXP for mingw
From a patch from Peter Kuemmel <syntheticpp@gmx.net>.
Diffstat (limited to 'bootstrap.py')
-rwxr-xr-xbootstrap.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 86d38d9..33acc5d 100755
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -78,9 +78,11 @@ if vcdir:
'/nologo', '/EHsc', '/DNOMINMAX']
else:
args = shlex.split(os.environ.get('CXX', 'g++'))
- args.extend(['-Wno-deprecated',
- '-DNINJA_PYTHON="' + sys.executable + '"',
- '-DNINJA_BOOTSTRAP'])
+ cflags.extend(['-Wno-deprecated',
+ '-DNINJA_PYTHON="' + sys.executable + '"',
+ '-DNINJA_BOOTSTRAP'])
+ if sys.platform.startswith('win32'):
+ cflags.append('-D_WIN32_WINNT=0x0501')
args.extend(cflags)
args.extend(ldflags)
binary = 'ninja.bootstrap'