62987 disables LTO build on darwin.
authorDevang Patel <dpatel@apple.com>
Wed, 11 Feb 2009 02:34:33 +0000 (02:34 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 11 Feb 2009 02:34:33 +0000 (02:34 +0000)
Revert 62987 for now. Nicolas please investigate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64285 91177308-0d34-0410-b5e6-96231b3b80d8

tools/Makefile
tools/lto/Makefile

index 0cf613a3058a537b2f3e467775ca153b6e2d149e..a296f8187024aabd6a6da33f959a0db91e7ff946 100644 (file)
@@ -25,7 +25,8 @@ PARALLEL_DIRS := llvm-config  \
 
 include $(LEVEL)/Makefile.config
 
-ifeq ($(ENABLE_PIC),1)
+# only build new lto project on Darwin for now
+ifeq ($(OS),Darwin)
 PARALLEL_DIRS += lto
 
 ifdef BINUTILS_INCDIR
index f0f6da7191a258c39f045e84543d48a1472792ba..69014d781ff1e7bea233a23da98f796d5aa49b83 100644 (file)
@@ -16,8 +16,12 @@ LIBRARYNAME = LTO
 include $(LEVEL)/Makefile.config
 
 LINK_LIBS_IN_SHARED = 1
-SHARED_LIBRARY = 1
-DONT_BUILD_RELINKED = 1
+ifeq ($(OS),Darwin)
+  SHARED_LIBRARY = 1
+  DONT_BUILD_RELINKED = 1
+else
+  BUILD_ARCHIVE = 1
+endif
 
 LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter