mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@
|
||||||
# Don't turn warnings on (but don't suppress them either)
|
# Don't turn warnings on (but don't suppress them either)
|
||||||
CONFIG -= warn_on warn_off
|
CONFIG -= warn_on warn_off
|
||||||
|
|
||||||
|
# Turn exceptions off
|
||||||
|
!win32-msvc*: QMAKE_CXXFLAGS += -fno-exceptions
|
||||||
|
CONFIG += exceptions_off
|
||||||
|
|
||||||
# Check if we have pkg-config
|
# Check if we have pkg-config
|
||||||
equals($$QMAKE_HOST.os, "Windows"):NUL=NUL
|
equals($$QMAKE_HOST.os, "Windows"):NUL=NUL
|
||||||
else:NUL=/dev/null
|
else:NUL=/dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue