summaryrefslogtreecommitdiffstats
path: root/bootstrap.py
diff options
context:
space:
mode:
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'