samples/wasm-c-api: skip aot compilation unless necessary (#4239)
This commit is contained in:
@ -129,7 +129,7 @@ if (${WAT2WASM_VERSION} VERSION_LESS 1.0.26)
|
|||||||
set(WAT2WASM_FLAGS "--enable-reference-types")
|
set(WAT2WASM_FLAGS "--enable-reference-types")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if(${WAMR_BUILD_AOT} EQUAL 1)
|
if(${WAMR_BUILD_AOT} EQUAL 1 AND ${WAMR_BUILD_INTERP} EQUAL 0)
|
||||||
## locate wamrc
|
## locate wamrc
|
||||||
find_program(WAMRC
|
find_program(WAMRC
|
||||||
wamrc
|
wamrc
|
||||||
|
|||||||
Reference in New Issue
Block a user