Build libLLVMlto on non-Darwin architectures. Resolves PR1055: http://llvm.org/PR1055
authorChandler Carruth <chandlerc@gmail.com>
Mon, 8 Jan 2007 06:25:29 +0000 (06:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 8 Jan 2007 06:25:29 +0000 (06:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33006 91177308-0d34-0410-b5e6-96231b3b80d8

tools/Makefile
tools/lto/Makefile
tools/lto/lto.cpp

index f1abf931a403fee7de3b1de09f783b1186a70dd7..c12f0799dc21103a07d70660cbdc55e38338d2bf 100644 (file)
@@ -22,8 +22,8 @@ PARALLEL_DIRS := llvm-config llvm-upgrade \
 
 include $(LEVEL)/Makefile.config
 
-# Disable liblto on non-darwin platforms right now until LLVM is built PIC.
-ifeq ($(OS), Darwin)
+# Disable liblto on Windows until compatability is determined.
+ifneq ($(OS), MingW)
 PARALLEL_DIRS += lto
 endif
 
index 91732ff3efe4f190bd6074086f1b6dd27f63c927..3d48abd5d2b291e3c2e4f5f695aaeef2b5a57f6a 100644 (file)
@@ -11,9 +11,13 @@ LEVEL = ../..
 LIBRARYNAME = LLVMlto
 
 LINK_LIBS_IN_SHARED = 1
-SHARED_LIBRARY = 1
-LOADABLE_MODULE = 1
-DONT_BUILD_RELINKED = 1
+ifeq ($(OS),Darwin)
+  SHARED_LIBRARY = 1
+  LOADABLE_MODULE = 1
+  DONT_BUILD_RELINKED = 1
+else
+  BUILD_ARCHIVE = 1
+endif
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 
index e91facc15ccf1239997a3532e788950eee982d0c..fac1a3028f04ce625c2ac843318b046c5548f0e5 100644 (file)
@@ -455,6 +455,9 @@ LTO::optimizeModules(const std::string &OutputFilename,
   return LTO_OPT_SUCCESS;
 }
 
+/// Unused pure-virtual destructor. Must remain empty.
+LinkTimeOptimizer::~LinkTimeOptimizer() {}
+
 /// Destruct LTO. Delete all modules, symbols and target.
 LTO::~LTO() {