summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-10-08 23:45:38 -0700
committerGravatar Thiago Macieira <thiago@macieira.org>2013-10-08 23:45:38 -0700
commitdddcd1016218a1b9b9662be078665e24d46efbac (patch)
tree14f637a4eff21b1674562389b635233f5ecccae5
parentf51f5d581ed14363e6ebc6684d5904e7d59616c4 (diff)
downloadsubsurface-dddcd1016218a1b9b9662be078665e24d46efbac.tar.gz
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>
-rw-r--r--subsurface-configure.pri4
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index ef4bb8e65..7836594dc 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -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