[llvm] r188619 - Makefile.rules: Simplify nested if(s) on OmitFramePointer.
NAKAMURA Takumi
geek4civic at gmail.com
Sat Aug 17 19:46:22 PDT 2013
Author: chapuni
Date: Sat Aug 17 21:46:21 2013
New Revision: 188619
URL: http://llvm.org/viewvc/llvm-project?rev=188619&view=rev
Log:
Makefile.rules: Simplify nested if(s) on OmitFramePointer.
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=188619&r1=188618&r2=188619&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Sat Aug 17 21:46:21 2013
@@ -274,13 +274,9 @@ CPP.Defines :=
ifeq ($(ENABLE_OPTIMIZED),1)
BuildMode := Release
# Don't use -fomit-frame-pointer on Darwin or FreeBSD.
- ifneq ($(HOST_OS),FreeBSD)
- ifneq ($(HOST_OS),GNU/kFreeBSD)
- ifneq ($(HOST_OS),Darwin)
+ ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin FreeBSD GNU/kFreeBSD))
OmitFramePointer := -fomit-frame-pointer
endif
- endif
- endif
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
More information about the llvm-commits
mailing list