Update build glue for lld (MK_LLD=yes). Also update invocation of
elf::link() in lld.cpp.
This commit is contained in:
parent
b1ae91026f
commit
56e766af41
@ -148,7 +148,7 @@ int main(int argc, const char **argv) {
|
|||||||
|
|
||||||
std::vector<const char *> args(argv, argv + argc);
|
std::vector<const char *> args(argv, argv + argc);
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
return !elf::link(args, true);
|
return !elf::link(args, canExitEarly(), llvm::outs(), llvm::errs());
|
||||||
#else
|
#else
|
||||||
switch (parseFlavor(args)) {
|
switch (parseFlavor(args)) {
|
||||||
case Gnu:
|
case Gnu:
|
||||||
|
@ -27,6 +27,7 @@ CFLAGS+= -I${OBJTOP}/lib/clang/libllvm
|
|||||||
|
|
||||||
SRCDIR= lld
|
SRCDIR= lld
|
||||||
SRCS+= Common/Args.cpp
|
SRCS+= Common/Args.cpp
|
||||||
|
SRCS+= Common/DWARF.cpp
|
||||||
SRCS+= Common/ErrorHandler.cpp
|
SRCS+= Common/ErrorHandler.cpp
|
||||||
SRCS+= Common/Filesystem.cpp
|
SRCS+= Common/Filesystem.cpp
|
||||||
SRCS+= Common/Memory.cpp
|
SRCS+= Common/Memory.cpp
|
||||||
@ -36,6 +37,7 @@ SRCS+= Common/TargetOptionsCommandFlags.cpp
|
|||||||
SRCS+= Common/Threads.cpp
|
SRCS+= Common/Threads.cpp
|
||||||
SRCS+= Common/Version.cpp
|
SRCS+= Common/Version.cpp
|
||||||
SRCS+= ELF/AArch64ErrataFix.cpp
|
SRCS+= ELF/AArch64ErrataFix.cpp
|
||||||
|
SRCS+= ELF/ARMErrataFix.cpp
|
||||||
SRCS+= ELF/Arch/AArch64.cpp
|
SRCS+= ELF/Arch/AArch64.cpp
|
||||||
SRCS+= ELF/Arch/AMDGPU.cpp
|
SRCS+= ELF/Arch/AMDGPU.cpp
|
||||||
SRCS+= ELF/Arch/ARM.cpp
|
SRCS+= ELF/Arch/ARM.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user