diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-11-23 11:27:05 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-11-23 11:59:30 +0100 |
commit | 832e6d22935040fe61504c90838415fa55feb24d (patch) | |
tree | cdc9a346feecb0bb92c293902984aa6b36042707 /solenv | |
parent | 6cdbf1cc9bc3fd97acdba981bad04d552dafc627 (diff) |
Some trivial fixes for MinGW with -std=c++0x enabled; not finished.
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/WNT_INTEL_GCC.mk | 5 | ||||
-rw-r--r-- | solenv/inc/wntgcci.mk | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/WNT_INTEL_GCC.mk b/solenv/gbuild/platform/WNT_INTEL_GCC.mk index b0b2bdbefcd9..6c50a9cbe18a 100644 --- a/solenv/gbuild/platform/WNT_INTEL_GCC.mk +++ b/solenv/gbuild/platform/WNT_INTEL_GCC.mk @@ -80,6 +80,11 @@ gb_CXXFLAGS += --sysroot=$(SYSBASE) gb_CFLAGS += --sysroot=$(SYSBASE) endif +ifeq ($(HAVE_CXX0X),TRUE) +# We can turn on additional useful checks with c++0x +# FIXME still does not compile fully gb_CXXFLAGS += -std=c++0x +endif + gb_LinkTarget_EXCEPTIONFLAGS += \ -fno-enforce-eh-specs \ diff --git a/solenv/inc/wntgcci.mk b/solenv/inc/wntgcci.mk index 3831c85395c7..d36bee6adb7c 100644 --- a/solenv/inc/wntgcci.mk +++ b/solenv/inc/wntgcci.mk @@ -46,6 +46,11 @@ CFLAGS+=-fmessage-length=0 -c CFLAGSCC=-pipe $(ARCH_FLAGS) CFLAGSCXX=-pipe $(ARCH_FLAGS) + +.IF "$(HAVE_CXX0X)" == "TRUE" +# FIXME still does not compile fully CFLAGSCXX+=-std=c++0x +.ENDIF + CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs CFLAGS_NO_EXCEPTIONS=-fno-exceptions PICSWITCH:= |