summaryrefslogtreecommitdiff
path: root/solenv/inc/unxiosr.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-06 21:29:43 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-06 21:29:43 +0200
commitcdd0e1810d4019d827563b436c1b3b8d1cf5b579 (patch)
tree8c82749d43848caaba4fc987d4007535819ae06b /solenv/inc/unxiosr.mk
parent837aa67861275dd56831cbba03a989b5ad71db4b (diff)
enable -fno-enforce-eh-specs only for non-dbgutil builds
The code uses exception specifications, so it doesn't make much sense to have them, but disable them using a gcc option. MSVC ignores them completely, so this would leave only clang as the only compiler to enforce them. Either the majority compiler needs to enforce it at least in dbgutil builds (in product builds the option can be seen as a kind of NDEBUG), or alternatively the exception specifications should be removed.
Diffstat (limited to 'solenv/inc/unxiosr.mk')
-rw-r--r--solenv/inc/unxiosr.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/inc/unxiosr.mk b/solenv/inc/unxiosr.mk
index 05bded5b55f2..089dc3d588aa 100644
--- a/solenv/inc/unxiosr.mk
+++ b/solenv/inc/unxiosr.mk
@@ -53,9 +53,11 @@ OBJCXXFLAGS:=-x objective-c++ $(OBJCFLAGS)
# Comp Flags for files that need exceptions enabled (C and C++)
CFLAGSEXCEPTIONS=-fexceptions
+.IF "$(dbgutil)"==""
.IF "$(COM_GCC_IS_CLANG)" != "TRUE"
CFLAGSEXCEPTIONS+=-fno-enforce-eh-specs
.ENDIF
+.ENDIF
# Comp Flags for files that do not need exceptions enabled (C and C++)
CFLAGS_NO_EXCEPTIONS=-fno-exceptions