From dddcd1016218a1b9b9662be078665e24d46efbac Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 8 Oct 2013 23:45:38 -0700 Subject: 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 --- subsurface-configure.pri | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'subsurface-configure.pri') 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 -- cgit v1.2.3-70-g09d2