mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Add --enable-llvmc-dynamic configure option.
Controls whether libCompilerDriver should be loaded dynamically. By default this is needed only on Win32, to make dynamic plugins work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,18 +12,26 @@ LEVEL = ../..
|
||||
# We don't want this library to appear in `llvm-config --libs` output, so its
|
||||
# name doesn't start with "LLVM".
|
||||
|
||||
LIBRARYNAME = libCompilerDriver
|
||||
LLVMLIBS = LLVMSupport.a LLVMSystem.a
|
||||
LOADABLE_MODULE := 1
|
||||
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
|
||||
LIBRARYNAME = libCompilerDriver
|
||||
LLVMLIBS = LLVMSupport.a LLVMSystem.a
|
||||
LOADABLE_MODULE := 1
|
||||
else
|
||||
LIBRARYNAME = CompilerDriver
|
||||
LINK_COMPONENTS = support system
|
||||
endif
|
||||
|
||||
REQUIRES_EH := 1
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
# Copy libCompilerDriver to the bin dir so that llvmc can find it.
|
||||
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
|
||||
|
||||
FullLibName = $(LIBRARYNAME)$(SHLIBEXT)
|
||||
|
||||
all-local:: $(ToolDir)/$(FullLibName)
|
||||
|
||||
# Copy the library to the bin dir so that llvmc can find it.
|
||||
$(ToolDir)/$(FullLibName): $(LibDir)/$(FullLibName) $(ToolDir)/.dir
|
||||
$(Echo) Copying $(BuildMode) Shared Library $(FullLibName) to $@
|
||||
-$(Verb) $(CP) $< $@
|
||||
@@ -32,3 +40,4 @@ clean-local::
|
||||
$(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \
|
||||
from $(ToolDir)
|
||||
-$(Verb) $(RM) -f $(ToolDir)/$(FullLibName)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user