Skip to content

Commit 852e2ce

Browse files
committed
Check for WASM_ENABLE_SIMDE in a couple more places
For WAMR users who don't use cmake, it's possible that WASM_ENABLE_SIMD is set when WASM_ENABLE_SIMDE isn't. This was causing build failures.
1 parent 510bb11 commit 852e2ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/iwasm/interpreter/wasm_opcode.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,14 +791,15 @@ typedef enum WASMAtomicEXTOpcode {
791791
#define SET_GOTO_TABLE_ELEM(opcode) [opcode] = HANDLE_OPCODE(opcode)
792792

793793
#if (WASM_ENABLE_JIT != 0 || WASM_ENABLE_FAST_INTERP != 0) \
794-
&& WASM_ENABLE_SIMD != 0
794+
&& WASM_ENABLE_SIMD != 0 && WASM_ENABLE_SIMDE != 0
795795
#define SET_GOTO_TABLE_SIMD_PREFIX_ELEM() \
796796
SET_GOTO_TABLE_ELEM(WASM_OP_SIMD_PREFIX),
797797
#else
798798
#define SET_GOTO_TABLE_SIMD_PREFIX_ELEM()
799799
#endif
800800

801-
#if (WASM_ENABLE_FAST_INTERP != 0) && WASM_ENABLE_SIMD != 0
801+
#if (WASM_ENABLE_FAST_INTERP != 0) && WASM_ENABLE_SIMD != 0 \
802+
&& WASM_ENABLE_SIMDE != 0
802803
#define DEF_EXT_V128_HANDLE() \
803804
SET_GOTO_TABLE_ELEM(EXT_OP_SET_LOCAL_FAST_V128), /* 0xdd */ \
804805
SET_GOTO_TABLE_ELEM(EXT_OP_TEE_LOCAL_FAST_V128), /* 0xde */ \

0 commit comments

Comments
 (0)