summaryrefslogtreecommitdiff
path: root/solenv/inc/unxmacx.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/unxmacx.mk
parenta871755e673fc83c92bf9731603d22004d0a3f2e (diff)
Check for Clang in configury and store and use result
Diffstat (limited to 'solenv/inc/unxmacx.mk')
-rw-r--r--solenv/inc/unxmacx.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/solenv/inc/unxmacx.mk b/solenv/inc/unxmacx.mk
index b0c862ec17c1..0cb0b62ee02f 100644
--- a/solenv/inc/unxmacx.mk
+++ b/solenv/inc/unxmacx.mk
@@ -103,7 +103,10 @@ OBJCFLAGS=-fobjc-exceptions
OBJCXXFLAGS=-x objective-c++ -fobjc-exceptions
# Comp Flags for files that need exceptions enabled (C and C++)
-CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
+CFLAGSEXCEPTIONS=-fexceptions
+.IF "$(COM_GCC_IS_CLANG)" != "TRUE"
+CFLAGSEXCEPTIONS+=-fno-enforce-eh-specs
+.ENDIF
# Comp Flags for files that do not need exceptions enabled (C and C++)
CFLAGS_NO_EXCEPTIONS=-fno-exceptions