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
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
return LTO_OPT_SUCCESS;
}
+/// Unused pure-virtual destructor. Must remain empty.
+LinkTimeOptimizer::~LinkTimeOptimizer() {}
+
/// Destruct LTO. Delete all modules, symbols and target.
LTO::~LTO() {