summaryrefslogtreecommitdiff
path: root/solenv/inc/unxgcc.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-02 14:07:25 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-02 15:42:25 +0200
commitfa65ff8b1d2f50fa7f14e92fa7bc3c5d6619831a (patch)
treeef3ed977dd512cb2581a7959778c6126c34bf763 /solenv/inc/unxgcc.mk
parenta871755e673fc83c92bf9731603d22004d0a3f2e (diff)
Check for Clang in configury and store and use result
Diffstat (limited to 'solenv/inc/unxgcc.mk')
-rw-r--r--solenv/inc/unxgcc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index 14983dd5b019..3765b2dd6cea 100644
--- a/solenv/inc/unxgcc.mk
+++ b/solenv/inc/unxgcc.mk
@@ -78,7 +78,10 @@ CFLAGSENABLESYMBOLS=-g
# flags for the C++ Compiler
CFLAGSCC= -pipe $(ARCH_FLAGS)
# Flags for enabling exception handling
-CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
+CFLAGSEXCEPTIONS=-fexceptions
+.IF "$(COM_GCC_IS_CLANG)" != "TRUE"
+CFLAGSEXCEPTIONS+=-fno-enforce-eh-specs
+.ENDIF
# Flags for disabling exception handling
CFLAGS_NO_EXCEPTIONS=-fno-exceptions