diff options
author | Evan Martin <martine@danga.com> | 2012-07-27 17:01:53 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-07-27 17:20:16 (GMT) |
commit | ce7e2b2171c82fe2b8649afea852d272d1abcbcd (patch) | |
tree | 7c53f18fbfafe9a806067a944d429d22442d9e13 | |
parent | adadf71e8f7df63371e5362bd65f1f1adc616e61 (diff) | |
download | Ninja-ce7e2b2171c82fe2b8649afea852d272d1abcbcd.zip Ninja-ce7e2b2171c82fe2b8649afea852d272d1abcbcd.tar.gz Ninja-ce7e2b2171c82fe2b8649afea852d272d1abcbcd.tar.bz2 |
bootstrap: set _WIN32_WINNT to WinXP for mingw
From a patch from Peter Kuemmel <syntheticpp@gmx.net>.
-rwxr-xr-x | bootstrap.py | 8 |
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' |