diff options
author | Scott Graham <sgraham@gmail.com> | 2012-01-14 03:17:14 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-14 03:17:14 (GMT) |
commit | 25a3bb074633dc1217f7fd2bc3702d12d20c1761 (patch) | |
tree | 93078c8ee9b0e451407b68a32773a0aad06f8752 /configure.py | |
parent | dc759f9ae232fd0a3087289e4c859aa008f00d8a (diff) | |
download | Ninja-25a3bb074633dc1217f7fd2bc3702d12d20c1761.zip Ninja-25a3bb074633dc1217f7fd2bc3702d12d20c1761.tar.gz Ninja-25a3bb074633dc1217f7fd2bc3702d12d20c1761.tar.bz2 |
windows: always generate PDB
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.py b/configure.py index eb97547..6732c98 100755 --- a/configure.py +++ b/configure.py @@ -103,12 +103,13 @@ else: if platform == 'windows': cflags = ['/nologo', '/Zi', '/W4', '/WX', '/wd4530', '/wd4100', '/wd4706', - '/wd4512', '/wd4800', + '/wd4512', '/wd4800', '/wd4702', '/D_CRT_SECURE_NO_WARNINGS', '/DWIN32', "/DNINJA_PYTHON=\"%s\"" % (options.with_python,)] + ldflags = ['/DEBUG', '/libpath:$builddir'] if not options.debug: - cflags += ['/Ox', '/DNDEBUG'] - ldflags = ['/libpath:$builddir'] + cflags += ['/Ox', '/DNDEBUG', '/GL'] + ldflags += ['/LTCG', '/OPT:REF', '/OPT:ICF'] else: cflags = ['-g', '-Wall', '-Wextra', '-Wno-deprecated', @@ -157,7 +158,7 @@ n.newline() if host == 'windows': n.rule('ar', - command='lib /nologo /out:$out $in', + command='lib /nologo /ltcg /out:$out $in', description='LIB $out') elif host == 'mingw': n.rule('ar', |