llvm.org GIT mirror llvm / 40e274b
Build libLLVMlto on non-Darwin architectures. Resolves PR1055: http://llvm.org/PR1055 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33006 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 12 years ago
3 changed file(s) with 12 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2121
2222 include $(LEVEL)/Makefile.config
2323
24 # Disable liblto on non-darwin platforms right now until LLVM is built PIC.
25 ifeq ($(OS), Darwin)
24 # Disable liblto on Windows until compatability is determined.
25 ifneq ($(OS), MingW)
2626 PARALLEL_DIRS += lto
2727 endif
2828
1010 LIBRARYNAME = LLVMlto
1111
1212 LINK_LIBS_IN_SHARED = 1
13 SHARED_LIBRARY = 1
14 LOADABLE_MODULE = 1
15 DONT_BUILD_RELINKED = 1
13 ifeq ($(OS),Darwin)
14 SHARED_LIBRARY = 1
15 LOADABLE_MODULE = 1
16 DONT_BUILD_RELINKED = 1
17 else
18 BUILD_ARCHIVE = 1
19 endif
1620
1721 # Include this here so we can get the configuration of the targets
1822 # that have been configured for construction. We have to do this
454454 return LTO_OPT_SUCCESS;
455455 }
456456
457 /// Unused pure-virtual destructor. Must remain empty.
458 LinkTimeOptimizer::~LinkTimeOptimizer() {}
459
457460 /// Destruct LTO. Delete all modules, symbols and target.
458461 LTO::~LTO() {
459462