mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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)
|
||||
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…
Add table
Reference in a new issue