summaryrefslogtreecommitdiff
path: root/tools/lto/Makefile
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-02-11 02:34:33 +0000
committerDevang Patel <dpatel@apple.com>2009-02-11 02:34:33 +0000
commitca70533d3daeda66f6a0f19faf6691c20b34d086 (patch)
tree130568437034a977880754910bd86678c5f83313 /tools/lto/Makefile
parentbd75b8345f9c2a6efd8fb799ba861129fed36ef8 (diff)
downloadllvm-ca70533d3daeda66f6a0f19faf6691c20b34d086.tar.gz
llvm-ca70533d3daeda66f6a0f19faf6691c20b34d086.tar.bz2
llvm-ca70533d3daeda66f6a0f19faf6691c20b34d086.tar.xz
62987 disables LTO build on darwin.
Revert 62987 for now. Nicolas please investigate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/Makefile')
-rw-r--r--tools/lto/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
index f0f6da7191..69014d781f 100644
--- a/tools/lto/Makefile
+++ b/tools/lto/Makefile
@@ -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