samples/wasm-c-api: skip aot compilation unless necessary (#4239)

This commit is contained in:
YAMAMOTO Takashi 2025-05-07 08:09:44 +09:00 committed by GitHub
parent d053f5534a
commit 1996c18c4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,7 @@ if (${WAT2WASM_VERSION} VERSION_LESS 1.0.26)
set(WAT2WASM_FLAGS "--enable-reference-types")
endif ()
if(${WAMR_BUILD_AOT} EQUAL 1)
if(${WAMR_BUILD_AOT} EQUAL 1 AND ${WAMR_BUILD_INTERP} EQUAL 0)
## locate wamrc
find_program(WAMRC
wamrc