Update wasm app build scripts for wasi-sdk-12 and refine interpreter (#481)
Update wasm app build scripts for wasi-sdk-12.0: add --export=__main_argc_argv, remove --no-threads Lookup function with name "__main_argc_argv" as main function besides "main" Change module_malloc to runtime_malloc in wasi native lib Refine classic interpreter op_block and op_br_table Refine faster interpreter op_br_table Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -18,7 +18,7 @@ SET (CMAKE_CXX_COMPILER_TARGET "wasm32")
|
||||
SET (CMAKE_CXX_COMPILER "${WASI_SDK_DIR}/bin/clang++")
|
||||
|
||||
SET (CMAKE_EXE_LINKER_FLAGS
|
||||
"-Wl,--initial-memory=65536,--no-entry,--no-threads,--strip-all" CACHE INTERNAL "")
|
||||
"-Wl,--initial-memory=65536,--no-entry,--strip-all" CACHE INTERNAL "")
|
||||
|
||||
SET (CMAKE_LINKER "${WASI_SDK_DIR}/bin/wasm-ld" CACHE INTERNAL "")
|
||||
SET (CMAKE_AR "${WASI_SDK_DIR}/bin/llvm-ar" CACHE INTERNAL "")
|
||||
|
||||
Reference in New Issue
Block a user