# Darwin requires -fstrict-aliasing to be explicitly enabled.
ifeq ($(OS),Darwin)
- EXTRA_OPTIONS += -fstrict-aliasing
+ EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
endif
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
DISABLE_AUTO_DEPENDENCIES=1
endif
-# Solaris requires the following flags to compile
ifeq ($(OS),SunOS)
-CXX.Flags += -D_POSIX_C_SOURCE=199506L -U_XOPEN_SOURCE
+CPP.BaseFlags += -include llvm/System/Solaris.h
endif
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)