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
This commit is contained in:
Mike Stump 2009-05-08 23:08:58 +00:00
parent 099672beef
commit 3fbdbd9898

View File

@ -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