Makefile.rules: Simplify nested if(s) on OmitFramePointer.

llvm-svn: 188619
This commit is contained in:
NAKAMURA Takumi 2013-08-18 02:46:21 +00:00
parent 46919be781
commit 1ade5e9574
1 changed files with 1 additions and 5 deletions

View File

@ -274,13 +274,9 @@ CPP.Defines :=
ifeq ($(ENABLE_OPTIMIZED),1) ifeq ($(ENABLE_OPTIMIZED),1)
BuildMode := Release BuildMode := Release
# Don't use -fomit-frame-pointer on Darwin or FreeBSD. # Don't use -fomit-frame-pointer on Darwin or FreeBSD.
ifneq ($(HOST_OS),FreeBSD) ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin FreeBSD GNU/kFreeBSD))
ifneq ($(HOST_OS),GNU/kFreeBSD)
ifneq ($(HOST_OS),Darwin)
OmitFramePointer := -fomit-frame-pointer OmitFramePointer := -fomit-frame-pointer
endif endif
endif
endif
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)