diff options
author | Mike Stump <mrs@apple.com> | 2009-05-08 23:08:58 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-05-08 23:08:58 +0000 |
commit | 8efa354edfebfafccd3114043448a80643bb0f98 (patch) | |
tree | 9cd22f097c04e338b7b3d9b761840d3827c264b6 /Makefile.rules | |
parent | 3f03ba808ec67377da8ace6bc610f58f1738902c (diff) | |
download | external_llvm-8efa354edfebfafccd3114043448a80643bb0f98.zip external_llvm-8efa354edfebfafccd3114043448a80643bb0f98.tar.gz external_llvm-8efa354edfebfafccd3114043448a80643bb0f98.tar.bz2 |
In non-pic builds, we can use -mdynamic-no-pic for a little more speed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index ce31f22..4acada3 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -338,6 +338,11 @@ ifeq ($(ENABLE_PIC),1) C.Flags += -fPIC endif endif +else + ifeq ($(OS),Darwin) + CXX.Flags += -mdynamic-no-pic + C.Flags += -mdynamic-no-pic + endif endif CXX.Flags += $(CXXFLAGS) -Woverloaded-virtual |