summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-configure.pri')
-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