summaryrefslogtreecommitdiff
path: root/wasm/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'wasm/CMakeLists.txt')
-rw-r--r--wasm/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/wasm/CMakeLists.txt b/wasm/CMakeLists.txt
new file mode 100644
index 0000000000000..19b0d168437ca
--- /dev/null
+++ b/wasm/CMakeLists.txt
@@ -0,0 +1,26 @@
+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
+ InputFiles.cpp
+ InputSegment.cpp
+ OutputSections.cpp
+ SymbolTable.cpp
+ Symbols.cpp
+ Writer.cpp
+ WriterUtils.cpp
+
+ LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ BinaryFormat
+ Core
+ Demangle
+ Object
+ Option
+ Support
+
+ LINK_LIBS
+ lldCommon
+ )