@@ -213,6 +213,9 @@ endif ()
213213
214214if (NOT DEFINED WAMR_BUILD_EXTENDED_CONST_EXPR)
215215 set (WAMR_BUILD_EXTENDED_CONST_EXPR 0)
216+
217+ if (NOT DEFINED WAMR_BUILD_BRANCH_HINTS)
218+ set (WAMR_BUILD_BRANCH_HINTS 1)
216219endif ()
217220
218221########################################
@@ -419,6 +422,12 @@ endif ()
419422if (WAMR_BUILD_REF_TYPES EQUAL 1)
420423 add_definitions (-DWASM_ENABLE_REF_TYPES=1)
421424endif ()
425+ if (WAMR_BUILD_BRANCH_HINTS EQUAL 1)
426+ add_definitions (-DWASM_ENABLE_BRANCH_HINTS=1)
427+ message (" branch hints enabled" )
428+ else ()
429+ message (" branch hints disabled" )
430+ endif ()
422431if (WAMR_BUILD_GC EQUAL 1)
423432 if (WAMR_TEST_GC EQUAL 1)
424433 message (" GC testing enabled" )
@@ -708,8 +717,8 @@ message (
708717" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
709718" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
710719" \" Typed Function References\" via WAMR_BUILD_GC: ${WAMR_BUILD_GC} \n "
720+ " \" Branch Hinting\" via WAMR_BUILD_BRANCH_HINTS: ${WAMR_BUILD_BRANCH_HINTS} \n "
711721" Unsupported (>= Phase4):\n "
712- " \" Branch Hinting\"\n "
713722" \" Custom Annotation Syntax in the Text Format\"\n "
714723" \" Exception handling\"\n "
715724" \" Import/Export of Mutable Globals\"\n "
0 commit comments