Skip to content

Commit

Permalink
bootstrap: set _WIN32_WINNT to WinXP for mingw
Browse files Browse the repository at this point in the history
From a patch from Peter Kuemmel <[email protected]>.
  • Loading branch information
evmar committed Jul 27, 2012
1 parent adadf71 commit ce7e2b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ def run(*args, **kwargs):
'/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'
Expand Down

0 comments on commit ce7e2b2

Please sign in to comment.