Turn off exceptions in C++
We don't use them in our code and Qt doesn't throw either, so save a few bytes and maybe a few setjump() calls on Windows. Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
parent
f51f5d581e
commit
dddcd10162
@ -11,6 +11,10 @@
|
||||
# Don't turn warnings on (but don't suppress them either)
|
||||
CONFIG -= warn_on warn_off
|
||||
|
||||
# Turn exceptions off
|
||||
!win32-msvc*: QMAKE_CXXFLAGS += -fno-exceptions
|
||||
CONFIG += exceptions_off
|
||||
|
||||
# Check if we have pkg-config
|
||||
equals($$QMAKE_HOST.os, "Windows"):NUL=NUL
|
||||
else:NUL=/dev/null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user