[PATCH] D119049: [LLD] Allow usage of LLD as a library
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 22:58:23 PST 2023
MaskRay added a comment.
There is a layering issue. `lld/Common/DriversMain.cpp` references `lld::elf::link` which is defined in the library `lldELF`. `lldELF` depends on `lldCommon` so `lldCommon` cannot depend on `lldELF`.
You shall see a linker error with `-DBUILD_SHARED_LIBS=on` due to `-Wl,-z,defs`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119049/new/
https://reviews.llvm.org/D119049
More information about the llvm-commits
mailing list