Skip to content

Commit fcf4160

Browse files
committed
samples/wasm-c-api: skip aot compilation unless necessary
1 parent 796b7ce commit fcf4160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/wasm-c-api/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if (${WAT2WASM_VERSION} VERSION_LESS 1.0.26)
129129
set(WAT2WASM_FLAGS "--enable-reference-types")
130130
endif ()
131131

132-
if(${WAMR_BUILD_AOT} EQUAL 1)
132+
if(${WAMR_BUILD_AOT} EQUAL 1 AND ${WAMR_BUILD_INTERP} EQUAL 0)
133133
## locate wamrc
134134
find_program(WAMRC
135135
wamrc

0 commit comments

Comments
 (0)