Skip to content

Commit 8258366

Browse files
committed
fixup! feat(hexagon): add Hexagon ISA target support
fixup! feat(hexagon): add Hexagon ISA target support Add HEXAGON to cmake target dispatch chains in config_common.cmake, iwasm_aot.cmake, and iwasm_common.cmake so the build recognizes the target and selects the correct arch-specific sources.
1 parent ed70858 commit 8258366

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

build-scripts/config_common.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ elseif (WAMR_BUILD_TARGET STREQUAL "RISCV32_ILP32")
4545
add_definitions(-DBUILD_TARGET_RISCV32_ILP32)
4646
elseif (WAMR_BUILD_TARGET STREQUAL "ARC")
4747
add_definitions(-DBUILD_TARGET_ARC)
48+
elseif (WAMR_BUILD_TARGET STREQUAL "HEXAGON")
49+
add_definitions(-DBUILD_TARGET_HEXAGON)
4850
else ()
4951
message (FATAL_ERROR "-- WAMR build target isn't set")
5052
endif ()

core/iwasm/aot/iwasm_aot.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ elseif (WAMR_BUILD_TARGET MATCHES "RISCV*")
4949
set (arch_source ${IWASM_AOT_DIR}/arch/aot_reloc_riscv.c)
5050
elseif (WAMR_BUILD_TARGET STREQUAL "ARC")
5151
set (arch_source ${IWASM_AOT_DIR}/arch/aot_reloc_arc.c)
52+
elseif (WAMR_BUILD_TARGET STREQUAL "HEXAGON")
53+
set (arch_source ${IWASM_AOT_DIR}/arch/aot_reloc_hexagon.c)
5254
else ()
5355
message (FATAL_ERROR "Build target isn't set")
5456
endif ()

core/iwasm/common/iwasm_common.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ elseif (WAMR_BUILD_TARGET MATCHES "RISCV*")
155155
set (source_all ${c_source_all} ${IWASM_COMMON_DIR}/arch/invokeNative_riscv.S)
156156
elseif (WAMR_BUILD_TARGET STREQUAL "ARC")
157157
set (source_all ${c_source_all} ${IWASM_COMMON_DIR}/arch/invokeNative_arc.s)
158+
elseif (WAMR_BUILD_TARGET STREQUAL "HEXAGON")
159+
set (source_all ${c_source_all} ${IWASM_COMMON_DIR}/arch/invokeNative_hexagon.s)
158160
else ()
159161
message (FATAL_ERROR "Build target isn't set")
160162
endif ()

0 commit comments

Comments
 (0)