Implement source debugging for interpreter and AOT (#769)
Implement source debugging feature for classic interpreter and AOT: - use `cmake -DWAMR_BUILD_DEBUG_INTERP=1` to enable interpreter debugging - use `cmake -DWAMR_BUILD_DEBUG_AOT=1` to enable AOT debugging See doc/source_debugging.md for more details.
This commit is contained in:
@ -31,5 +31,10 @@ else ()
|
||||
message (FATAL_ERROR "Build target isn't set")
|
||||
endif ()
|
||||
|
||||
set (IWASM_AOT_SOURCE ${c_source_all} ${arch_source})
|
||||
if (WAMR_BUILD_DEBUG_AOT EQUAL 1)
|
||||
add_definitions(-DWASM_ENABLE_DEBUG_AOT=1)
|
||||
file(GLOB debug_source ${IWASM_AOT_DIR}/debug/*.c)
|
||||
endif()
|
||||
|
||||
set (IWASM_AOT_SOURCE ${c_source_all} ${arch_source} ${debug_source})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user