llvm-project/lld/wasm/CMakeLists.txt
Sam Clegg 9a450a0096
[lld][WebAssembly] Implement various thinlto flags (#114327)
The changes in this PR (both in the code and the tests) are largely
copied directly from the ELF linker.

Partial fix for #79604.
2024-11-01 16:34:06 -07:00

43 lines
641 B
CMake

set(LLVM_TARGET_DEFINITIONS Options.td)
tablegen(LLVM Options.inc -gen-opt-parser-defs)
add_public_tablegen_target(WasmOptionsTableGen)
add_lld_library(lldWasm
Driver.cpp
InputChunks.cpp
InputFiles.cpp
LTO.cpp
MapFile.cpp
MarkLive.cpp
OutputSections.cpp
OutputSegment.cpp
Relocations.cpp
SymbolTable.cpp
Symbols.cpp
SyntheticSections.cpp
Writer.cpp
WriterUtils.cpp
LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
BinaryFormat
BitWriter
Core
Demangle
LTO
MC
Object
Option
Passes
ProfileData
Support
TargetParser
LINK_LIBS
lldCommon
DEPENDS
WasmOptionsTableGen
intrinsics_gen
)