@@ -215,6 +215,10 @@ if (NOT DEFINED WAMR_BUILD_EXTENDED_CONST_EXPR)
215215 set (WAMR_BUILD_EXTENDED_CONST_EXPR 0)
216216endif ()
217217
218+ if (NOT DEFINED WAMR_BUILD_BRANCH_HINTS)
219+ set (WAMR_BUILD_BRANCH_HINTS 1)
220+ endif ()
221+
218222########################################
219223# Compilation options to marco
220224########################################
@@ -419,6 +423,12 @@ endif ()
419423if (WAMR_BUILD_REF_TYPES EQUAL 1)
420424 add_definitions (-DWASM_ENABLE_REF_TYPES=1)
421425endif ()
426+ if (WAMR_BUILD_BRANCH_HINTS EQUAL 1)
427+ add_definitions (-DWASM_ENABLE_BRANCH_HINTS=1)
428+ message (" branch hints enabled" )
429+ else ()
430+ message (" branch hints disabled" )
431+ endif ()
422432if (WAMR_BUILD_GC EQUAL 1)
423433 if (WAMR_TEST_GC EQUAL 1)
424434 message (" GC testing enabled" )
@@ -708,8 +718,8 @@ message (
708718" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
709719" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
710720" \" Typed Function References\" via WAMR_BUILD_GC: ${WAMR_BUILD_GC} \n "
721+ " \" Branch Hinting\" via WAMR_BUILD_BRANCH_HINTS: ${WAMR_BUILD_BRANCH_HINTS} \n "
711722" Unsupported (>= Phase4):\n "
712- " \" Branch Hinting\"\n "
713723" \" Custom Annotation Syntax in the Text Format\"\n "
714724" \" Exception handling\"\n "
715725" \" Import/Export of Mutable Globals\"\n "
0 commit comments