mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-11 10:26:44 +00:00
7e2ea97c9b
WebAssembly depends on attributes.h which includes attributes.inc. Unless cmake explicitly specifies this dependency, the .inc file is sometimes generated after the build tries to use it. Patch by Stella Stamenova llvm-svn: 334581
38 lines
590 B
CMake
38 lines
590 B
CMake
set(LLVM_TARGET_DEFINITIONS Options.td)
|
|
tablegen(LLVM Options.inc -gen-opt-parser-defs)
|
|
add_public_tablegen_target(WasmOptionsTableGen)
|
|
|
|
if(NOT LLD_BUILT_STANDALONE)
|
|
set(tablegen_deps intrinsics_gen)
|
|
endif()
|
|
|
|
add_lld_library(lldWasm
|
|
Driver.cpp
|
|
InputChunks.cpp
|
|
InputFiles.cpp
|
|
LTO.cpp
|
|
MarkLive.cpp
|
|
OutputSections.cpp
|
|
SymbolTable.cpp
|
|
Symbols.cpp
|
|
Writer.cpp
|
|
WriterUtils.cpp
|
|
|
|
LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
BinaryFormat
|
|
Core
|
|
Demangle
|
|
LTO
|
|
MC
|
|
Object
|
|
Option
|
|
Support
|
|
|
|
LINK_LIBS
|
|
lldCommon
|
|
|
|
DEPENDS
|
|
WasmOptionsTableGen
|
|
${tablegen_deps}
|
|
) |