mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Disable quick aot entry for interp and fast-jit (#3039)
Quick aot/jit entry is only for aot and llvm jit now, no need to enable it for interpreter and fast-jit when aot and llvm jit are disabled.
This commit is contained in:
parent
ade97ac3e1
commit
6fb376cbe3
|
@ -457,18 +457,22 @@ if (WAMR_BUILD_LINUX_PERF EQUAL 1)
|
||||||
add_definitions (-DWASM_ENABLE_LINUX_PERF=1)
|
add_definitions (-DWASM_ENABLE_LINUX_PERF=1)
|
||||||
message (" Linux perf support enabled")
|
message (" Linux perf support enabled")
|
||||||
endif ()
|
endif ()
|
||||||
if (NOT DEFINED WAMR_BUILD_QUICK_AOT_ENTRY)
|
if (WAMR_BUILD_AOT EQUAL 1 OR WAMR_BUILD_JIT EQUAL 1)
|
||||||
# Enable quick aot/jit entries by default
|
if (NOT DEFINED WAMR_BUILD_QUICK_AOT_ENTRY)
|
||||||
set (WAMR_BUILD_QUICK_AOT_ENTRY 1)
|
# Enable quick aot/jit entries by default
|
||||||
endif ()
|
set (WAMR_BUILD_QUICK_AOT_ENTRY 1)
|
||||||
if (WAMR_BUILD_QUICK_AOT_ENTRY EQUAL 1)
|
endif ()
|
||||||
add_definitions (-DWASM_ENABLE_QUICK_AOT_ENTRY=1)
|
if (WAMR_BUILD_QUICK_AOT_ENTRY EQUAL 1)
|
||||||
message (" Quick AOT/JIT entries enabled")
|
add_definitions (-DWASM_ENABLE_QUICK_AOT_ENTRY=1)
|
||||||
|
message (" Quick AOT/JIT entries enabled")
|
||||||
|
else ()
|
||||||
|
add_definitions (-DWASM_ENABLE_QUICK_AOT_ENTRY=0)
|
||||||
|
message (" Quick AOT/JIT entries disabled")
|
||||||
|
endif ()
|
||||||
else ()
|
else ()
|
||||||
|
# Disable quick aot/jit entries for interp and fast-jit
|
||||||
add_definitions (-DWASM_ENABLE_QUICK_AOT_ENTRY=0)
|
add_definitions (-DWASM_ENABLE_QUICK_AOT_ENTRY=0)
|
||||||
message (" Quick AOT/JIT entries disabled")
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
EXEC_PROGRAM(sw_vers ARGS -productVersion OUTPUT_VARIABLE OS_X_VERSION)
|
EXEC_PROGRAM(sw_vers ARGS -productVersion OUTPUT_VARIABLE OS_X_VERSION)
|
||||||
STRING(REGEX MATCH "([0-9]+)" OS_X_VERSION ${OS_X_VERSION})
|
STRING(REGEX MATCH "([0-9]+)" OS_X_VERSION ${OS_X_VERSION})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user