From f229db5d57a5976db87d9d69826cae655b5e609a Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 28 Nov 2012 08:21:41 +0100 Subject: Angle: Use dynamic runtime library of MSVC. It is also used in Qt, mixing both is not recommended. Add to default variables instead of overwriting them. Change-Id: I895d44d5ea17f98dde9979eea6ff10b98180cc08 Reviewed-by: Andy Shaw --- src/angle/src/config.pri | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/angle/src/config.pri') diff --git a/src/angle/src/config.pri b/src/angle/src/config.pri index 7aedbc92cb..e057217309 100644 --- a/src/angle/src/config.pri +++ b/src/angle/src/config.pri @@ -82,16 +82,23 @@ msvc { # 4245: 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch # 4512: 'class' : assignment operator could not be generated # 4702: unreachable code - QMAKE_CFLAGS_WARN_ON = -W4 -wd"4100" -wd"4127" -wd"4189" -wd"4239" -wd"4244" -wd"4245" -wd"4512" -wd"4702" - QMAKE_CFLAGS_RELEASE = -O2 -Oy- -MT -Gy -GS -Gm- - QMAKE_CFLAGS_DEBUG = -Od -Oy- -MTd -Gy -GS -Gm- -RTC1 + QMAKE_CFLAGS_WARN_ON -= -W3 + QMAKE_CFLAGS_WARN_ON += -W4 -wd"4100" -wd"4127" -wd"4189" -wd"4239" -wd"4244" -wd"4245" -wd"4512" -wd"4702" + # Optimizations + # /Oy: Omits frame pointer (x86 only). + # /Gy: Enables function-level linking. + # /GS: Buffers security check. + # /Gm-: Disable minimal rebuild. + # /RTC1: Run time error checking + QMAKE_CFLAGS_RELEASE += -Oy- -Gy -GS -Gm- + QMAKE_CFLAGS_DEBUG += -Oy- -Gy -GS -Gm- -RTC1 QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO = -Zi $$QMAKE_CFLAGS_RELEASE QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON } gcc { - QMAKE_CFLAGS_WARN_ON = -Wall -Wno-unknown-pragmas -Wno-comment -Wno-missing-field-initializers \ + QMAKE_CFLAGS_WARN_ON += -Wno-unknown-pragmas -Wno-comment -Wno-missing-field-initializers \ -Wno-switch -Wno-unused-parameter -Wno-write-strings -Wno-sign-compare -Wno-missing-braces \ -Wno-unused-but-set-variable -Wno-unused-variable -Wno-narrowing -Wno-maybe-uninitialized \ -Wno-strict-aliasing -Wno-type-limits -- cgit v1.2.3