mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
llvm-ld does not exist anymore, use llvm-link instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
63c5c371d8
commit
49efb1a6e7
@ -553,6 +553,9 @@ endif
|
||||
ifndef LBUGPOINT
|
||||
LBUGPOINT := $(LLVMToolDir)/bugpoint$(EXEEXT)
|
||||
endif
|
||||
ifndef LLVMLINK
|
||||
LLVMLINK := $(LLVMToolDir)/llvm-link$(EXEEXT)
|
||||
endif
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Adjust to user's request
|
||||
@ -1131,14 +1134,14 @@ $(warning Modules require LLVM capable compiler but none is available ****)
|
||||
else
|
||||
|
||||
Module := $(LibDir)/$(MODULE_NAME).bc
|
||||
LinkModule := $(LLVMLD) -r
|
||||
LinkModule := $(LLVMLINK)
|
||||
|
||||
|
||||
ifdef EXPORTED_SYMBOL_FILE
|
||||
LinkModule += -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
|
||||
endif
|
||||
|
||||
$(Module): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir $(LLVMLD)
|
||||
$(Module): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir $(LLVMLINK)
|
||||
$(Echo) Building $(BuildMode) Bytecode Module $(notdir $@)
|
||||
$(Verb) $(LinkModule) -o $@ $(ObjectsBC)
|
||||
|
||||
@ -1273,9 +1276,9 @@ else
|
||||
all-local:: $(LibName.BCA)
|
||||
|
||||
ifdef EXPORTED_SYMBOL_FILE
|
||||
BCLinkLib = $(LLVMLD) -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
|
||||
BCLinkLib = $(LLVMLINK) -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
|
||||
|
||||
$(LibName.BCA): $(ObjectsBC) $(LibDir)/.dir $(LLVMLD) \
|
||||
$(LibName.BCA): $(ObjectsBC) $(LibDir)/.dir $(LLVMLINK) \
|
||||
$(LLVMToolDir)/llvm-ar
|
||||
$(Echo) Building $(BuildMode) Bytecode Archive $(notdir $@) \
|
||||
"(internalize)"
|
||||
|
Loading…
Reference in New Issue
Block a user