Try this. Darwin -> LTO, PIC -> LTO + possibly gold too.

llvm-svn: 64299
This commit is contained in:
Nick Lewycky 2009-02-11 08:44:13 +00:00
parent a1968b0fc7
commit 9dfffc6c9f
2 changed files with 5 additions and 8 deletions

View File

@ -25,10 +25,11 @@ PARALLEL_DIRS := llvm-config \
include $(LEVEL)/Makefile.config
# only build new lto project on Darwin for now
# build lto project on Darwin or if PIC is enabled
ifeq ($(OS),Darwin)
PARALLEL_DIRS += lto
else ($(ENABLE_PIC),1)
PARALLEL_DIRS += lto
ifdef BINUTILS_INCDIR
PARALLEL_DIRS += gold
endif

View File

@ -16,12 +16,8 @@ LIBRARYNAME = LTO
include $(LEVEL)/Makefile.config
LINK_LIBS_IN_SHARED = 1
ifeq ($(OS),Darwin)
SHARED_LIBRARY = 1
DONT_BUILD_RELINKED = 1
else
BUILD_ARCHIVE = 1
endif
SHARED_LIBRARY = 1
DONT_BUILD_RELINKED = 1
LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter