@@ -211,6 +211,10 @@ if (NOT DEFINED WAMR_BUILD_TAIL_CALL)
211211 set (WAMR_BUILD_TAIL_CALL 0)
212212endif ()
213213
214+ if (NOT DEFINED WAMR_BUILD_BRANCH_HINTS)
215+ set (WAMR_BUILD_BRANCH_HINTS 1)
216+ endif ()
217+
214218########################################
215219# Compilation options to marco
216220########################################
@@ -420,6 +424,12 @@ endif ()
420424if (WAMR_BUILD_REF_TYPES EQUAL 1)
421425 add_definitions (-DWASM_ENABLE_REF_TYPES=1)
422426endif ()
427+ if (WAMR_BUILD_BRANCH_HINTS EQUAL 1)
428+ add_definitions (-DWASM_ENABLE_BRANCH_HINTS=1)
429+ message (" branch hints enabled" )
430+ else ()
431+ message (" branch hints disabled" )
432+ endif ()
423433if (WAMR_BUILD_GC EQUAL 1)
424434 if (WAMR_TEST_GC EQUAL 1)
425435 message (" GC testing enabled" )
@@ -699,8 +709,8 @@ message (
699709" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
700710" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
701711" \" Typed Function References\" via WAMR_BUILD_GC: ${WAMR_BUILD_GC} \n "
712+ " \" Branch Hinting\" via WAMR_BUILD_BRANCH_HINTS: ${WAMR_BUILD_BRANCH_HINTS} \n "
702713" Unsupported (>= Phase4):\n "
703- " \" Branch Hinting\"\n "
704714" \" Custom Annotation Syntax in the Text Format\"\n "
705715" \" Exception handling\"\n "
706716" \" Extended Constant Expressions\"\n "
0 commit comments