From 25a3bb074633dc1217f7fd2bc3702d12d20c1761 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Fri, 13 Jan 2012 19:17:14 -0800 Subject: windows: always generate PDB --- configure.py | 9 +++++---- 1 file 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', -- cgit v0.12