@@ -215,6 +215,10 @@ if (NOT DEFINED WAMR_BUILD_EXTENDED_CONST_EXPR)
215
215
set (WAMR_BUILD_EXTENDED_CONST_EXPR 0)
216
216
endif ()
217
217
218
+ if (NOT DEFINED WAMR_BUILD_BRANCH_HINTS)
219
+ set (WAMR_BUILD_BRANCH_HINTS 1)
220
+ endif ()
221
+
218
222
########################################
219
223
# Compilation options to marco
220
224
########################################
@@ -419,6 +423,12 @@ endif ()
419
423
if (WAMR_BUILD_REF_TYPES EQUAL 1)
420
424
add_definitions (-DWASM_ENABLE_REF_TYPES=1)
421
425
endif ()
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 ()
422
432
if (WAMR_BUILD_GC EQUAL 1)
423
433
if (WAMR_TEST_GC EQUAL 1)
424
434
message (" GC testing enabled" )
@@ -708,8 +718,8 @@ message (
708
718
" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
709
719
" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
710
720
" \" Typed Function References\" via WAMR_BUILD_GC: ${WAMR_BUILD_GC} \n "
721
+ " \" Branch Hinting\" via WAMR_BUILD_BRANCH_HINTS: ${WAMR_BUILD_BRANCH_HINTS} \n "
711
722
" Unsupported (>= Phase4):\n "
712
- " \" Branch Hinting\"\n "
713
723
" \" Custom Annotation Syntax in the Text Format\"\n "
714
724
" \" Exception handling\"\n "
715
725
" \" Import/Export of Mutable Globals\"\n "
0 commit comments