diff options
Diffstat (limited to 'include/makeinclude/platform_chorus.GNU')
-rw-r--r-- | include/makeinclude/platform_chorus.GNU | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/makeinclude/platform_chorus.GNU b/include/makeinclude/platform_chorus.GNU index 440b590366b..aa78c7ace5f 100644 --- a/include/makeinclude/platform_chorus.GNU +++ b/include/makeinclude/platform_chorus.GNU @@ -6,6 +6,7 @@ CHORUS = 1 CROSS-COMPILE = 1 debug = 1 +exceptions = optimize = 1 shared_libs = static_libs = 1 @@ -35,9 +36,14 @@ CCFLAGS += $(CFLAGS) -fno-implicit-templates \ -nostdinc \ -pipe \ -fno-rtti \ - -fno-exceptions \ -D_POSIX_THREADS \ -D_POSIX_THREAD_SAFE_FUNCTIONS + +ifeq ($(exceptions),1) +else # ! exceptions + CCFLAGS += -fno-exceptions +endif # ! exceptions + #DCFLAGS += -gstabs+ INCLDIRS += -I$(INC_DIR)/posix \ -I$(INC_DIR)/stdc \ |