forked from OSchip/llvm-project
Makefile.rules: Simplify nested if(s) on OmitFramePointer.
llvm-svn: 188619
This commit is contained in:
parent
46919be781
commit
1ade5e9574
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue