aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2009-08-19 22:04:44 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2009-08-19 22:04:44 +0000
commit0820ccc6c7bc09384d9b006a966dabae4a434d2c (patch)
tree5587a4108679ac59bf0cab8393c29d477f842d84 /Makefile.rules
parentb9e5913544efc3b330e9e2de11c0b3110ba33e93 (diff)
downloadexternal_llvm-0820ccc6c7bc09384d9b006a966dabae4a434d2c.zip
external_llvm-0820ccc6c7bc09384d9b006a966dabae4a434d2c.tar.gz
external_llvm-0820ccc6c7bc09384d9b006a966dabae4a434d2c.tar.bz2
Add a REQUIRES_FRAME_POINTER option to disable the frame pointer
elimination optimization on the LLVM code base. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 8cc6558..5556684 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -337,6 +337,12 @@ ifndef REQUIRES_EH
CXX.Flags += -fno-exceptions
endif
+ifdef REQUIRES_FRAME_POINTER
+ CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags))
+ C.Flags := $(filter-out -fomit-frame-pointer,$(C.Flags))
+ LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags))
+endif
+
# IF REQUIRES_RTTI=1 is specified then don't disable run-time type id
ifndef REQUIRES_RTTI
# CXX.Flags += -fno-rtti