summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorShravan Narayan <shravanrn@gmail.com>2023-05-10 17:56:04 -0400
committerShravan Narayan <shravanrn@gmail.com>2023-05-17 23:00:10 -0400
commit795f415f70f75d4cd841078aaa7a0dc14f9ebdd9 (patch)
tree6f1dc69c21e388e258a2c459bd5c299b4869d450 /CMakeLists.txt
parent963f973469b45969ce198e0c86d3af316790a780 (diff)
downloadwabt-795f415f70f75d4cd841078aaa7a0dc14f9ebdd9.tar.gz
wabt-795f415f70f75d4cd841078aaa7a0dc14f9ebdd9.tar.bz2
wabt-795f415f70f75d4cd841078aaa7a0dc14f9ebdd9.zip
wasm2c: partial support for atomic memory ops
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59a30f75..8087021e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,6 +261,7 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -D out="${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_source_includes.cc" -D in="${WABT_SOURCE_DIR}/src/template/wasm2c.includes.c" -D symbol="s_source_includes" -P ${TEMPLATE_CMAKE}
COMMAND ${CMAKE_COMMAND} -D out="${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_source_declarations.cc" -D in="${WABT_SOURCE_DIR}/src/template/wasm2c.declarations.c" -D symbol="s_source_declarations" -P ${TEMPLATE_CMAKE}
COMMAND ${CMAKE_COMMAND} -D out="${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_simd_source_declarations.cc" -D in="${WABT_SOURCE_DIR}/src/template/wasm2c_simd.declarations.c" -D symbol="s_simd_source_declarations" -P ${TEMPLATE_CMAKE}
+ COMMAND ${CMAKE_COMMAND} -D out="${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_atomicops_source_declarations.cc" -D in="${WABT_SOURCE_DIR}/src/template/wasm2c_atomicops.declarations.c" -D symbol="s_atomicops_source_declarations" -P ${TEMPLATE_CMAKE}
COMMAND ${CMAKE_COMMAND} -E touch gen-wasm2c-prebuilt
DEPENDS ${WABT_SOURCE_DIR}/src/template/wasm2c.top.h
@@ -268,6 +269,7 @@ add_custom_command(
${WABT_SOURCE_DIR}/src/template/wasm2c.includes.c
${WABT_SOURCE_DIR}/src/template/wasm2c.declarations.c
${WABT_SOURCE_DIR}/src/template/wasm2c_simd.declarations.c
+ ${WABT_SOURCE_DIR}/src/template/wasm2c_atomicops.declarations.c
)
add_custom_target(gen-wasm2c-prebuilt-target DEPENDS gen-wasm2c-prebuilt)
@@ -276,7 +278,8 @@ set(CWRITER_TEMPLATE_SRC ${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_header_top.cc
${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_header_bottom.cc
${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_source_includes.cc
${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_source_declarations.cc
- ${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_simd_source_declarations.cc)
+ ${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_simd_source_declarations.cc
+ ${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_atomicops_source_declarations.cc)
add_custom_target(everything)