diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2014-12-24 14:39:56 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2014-12-24 14:49:09 +0300 |
commit | d2dbfedf191f6df7e6514274e93639d842c02552 (patch) | |
tree | 93d1ac4b413bfbcdbdd5d72e0c810e2be014f8d1 | |
parent | 124b1ceb032dddaa85091c5fa74ba63723c98303 (diff) |
Remove -Zc:strictStrings flag that Qt 5.4 adds when using MSVS 2013.
-rw-r--r-- | compiler.pri | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler.pri b/compiler.pri index eff150345..789562b29 100644 --- a/compiler.pri +++ b/compiler.pri @@ -95,6 +95,15 @@ win32 { QMAKE_CXXFLAGS_RELEASE *= -arch:SSE } + # Qt 5.4 uses -Zc:strictStrings by default on MSVS 2013. + # TextToSpeech_win.cpp uses sapi.h, which isn't compatible + # with the strictStrings option due to bad conversions + # in some of its functions's default parameters. + QMAKE_CFLAGS_RELEASE -= -Zc:strictStrings + QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings + QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -Zc:strictStrings + QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO -= -Zc:strictStrings + QMAKE_LFLAGS_CONSOLE -= /SUBSYSTEM:CONSOLE QMAKE_LFLAGS_CONSOLE += /SUBSYSTEM:CONSOLE,5.01 |