diff options
author | Shravan Narayan <shravanrn@gmail.com> | 2023-04-29 15:37:23 -0400 |
---|---|---|
committer | Shravan Narayan <shravanrn@gmail.com> | 2023-05-02 14:27:21 -0400 |
commit | 5abbeaab97eb802acccf866d9c8cc021c1f7e570 (patch) | |
tree | 54380ba2ead12f36b1cf7b16aa2f68d2617fc9ef /src/prebuilt/wasm2c_header_top.cc | |
parent | 4d9a1475a744ab78e7fbc3dc60bf7038dad6119d (diff) | |
download | wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.tar.gz wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.tar.bz2 wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.zip |
wasm2c: Enable exceptions and simd according to command line flags
Diffstat (limited to 'src/prebuilt/wasm2c_header_top.cc')
-rw-r--r-- | src/prebuilt/wasm2c_header_top.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/prebuilt/wasm2c_header_top.cc b/src/prebuilt/wasm2c_header_top.cc index daf1eecf..d36aaf0c 100644 --- a/src/prebuilt/wasm2c_header_top.cc +++ b/src/prebuilt/wasm2c_header_top.cc @@ -4,6 +4,13 @@ R"w2c_template( #include "wasm-rt.h" )w2c_template" R"w2c_template( +#if defined(WASM_RT_ENABLE_EXCEPTION_HANDLING) +)w2c_template" +R"w2c_template(#include "wasm-rt-exceptions.h" +)w2c_template" +R"w2c_template(#endif +)w2c_template" +R"w2c_template( #if defined(WASM_RT_ENABLE_SIMD) )w2c_template" R"w2c_template(#include "simde/wasm/simd128.h" |