Kaydet (Commit) 7a0b7214 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Filter out options that Clang doesn't have

üst fead7eb8
......@@ -64,11 +64,15 @@ gb_CXXFLAGS := \
-Wno-ctor-dtor-privacy \
-Wno-non-virtual-dtor \
-fno-strict-aliasing \
-fsigned-char \
-malign-natural \
#-Wshadow \ break in compiler headers already
#-fsigned-char \ might be removed?
#-malign-natural \ might be removed?
-fsigned-char
# No idea if -malign-natural is needed, but macosx.mk uses it...
# Why it isn't used in gb_CFLAGS I have no idea.
# Anyway, Clang doesn't have this option.
ifeq (,$(findstring /clang,$(CXX)))
gb_CXXFLAGS += \
-malign-natural
endif
# these are to get gcc to switch to Objective-C++ or Objective-C mode
gb_OBJC_OBJCXX_COMMON_FLAGS := -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300
......@@ -203,6 +207,7 @@ gb_Library__FRAMEWORKS := \
Foundation \
CoreFoundation \
CoreGraphics \
CoreText \
gb_Library_PLAINLIBS_NONE += \
objc \
......
......@@ -118,8 +118,13 @@ endif
gb_LinkTarget_EXCEPTIONFLAGS := \
-DEXCEPTIONS_ON \
-fexceptions \
-fno-enforce-eh-specs \
-fexceptions
# Clang doesn't have this option
ifeq (,$(findstring /clang,$(CXX)))
gb_LinkTarget_EXCEPTIONFLAGS += \
-fno-enforce-eh-specs
endif
gb_LinkTarget_NOEXCEPTIONFLAGS := \
-DEXCEPTIONS_OFF \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment