mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
ca7ad8942a
commit
40e274b579
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user