diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-18 02:46:21 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-18 02:46:21 +0000 |
commit | a75cda09c47357598388592f7a8331d36aca3381 (patch) | |
tree | a5cb4a0b1315ed1f15b4d86acd83ba6c41638745 | |
parent | 8525fad82cb191d42ce9229a64020e4311c72ed0 (diff) | |
download | external_llvm-a75cda09c47357598388592f7a8331d36aca3381.zip external_llvm-a75cda09c47357598388592f7a8331d36aca3381.tar.gz external_llvm-a75cda09c47357598388592f7a8331d36aca3381.tar.bz2 |
Makefile.rules: Simplify nested if(s) on OmitFramePointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188619 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile.rules b/Makefile.rules index 32b1ebc..d51f269 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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) |