summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2023-05-12 11:50:32 -0700
committerGitHub <noreply@github.com>2023-05-12 18:50:32 +0000
commit8e0b8dab492d98db7cab7a6fe6cd6a46706da46f (patch)
tree1b7ed97fbbd932381980e42fddec7e2a1aed0984 /CMakeLists.txt
parent626921443c16ebd7af46744f8f61a40123a56f41 (diff)
downloadwabt-8e0b8dab492d98db7cab7a6fe6cd6a46706da46f.tar.gz
wabt-8e0b8dab492d98db7cab7a6fe6cd6a46706da46f.tar.bz2
wabt-8e0b8dab492d98db7cab7a6fe6cd6a46706da46f.zip
wasm2c: include simd128.h and wasm-rt-exceptions.h where necessary (#2236)
Co-authored-by: Shravan Narayan <shravanrn@gmail.com>
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 b9531a01..6aa02476 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -260,12 +260,14 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -D out="${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_header_bottom.cc" -D in="${WABT_SOURCE_DIR}/src/template/wasm2c.bottom.h" -D symbol="s_header_bottom" -P ${TEMPLATE_CMAKE}
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} -E touch gen-wasm2c-prebuilt
DEPENDS ${WABT_SOURCE_DIR}/src/template/wasm2c.top.h
${WABT_SOURCE_DIR}/src/template/wasm2c.bottom.h
${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
)
add_custom_target(gen-wasm2c-prebuilt-target DEPENDS gen-wasm2c-prebuilt)
@@ -273,7 +275,8 @@ add_custom_target(gen-wasm2c-prebuilt-target DEPENDS gen-wasm2c-prebuilt)
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_source_declarations.cc
+ ${WABT_SOURCE_DIR}/src/prebuilt/wasm2c_simd_source_declarations.cc)
add_custom_target(everything)