@@ -211,6 +211,10 @@ if (NOT DEFINED WAMR_BUILD_TAIL_CALL)
211
211
set (WAMR_BUILD_TAIL_CALL 0)
212
212
endif ()
213
213
214
+ if (NOT DEFINED WAMR_BUILD_BRANCH_HINTS)
215
+ set (WAMR_BUILD_BRANCH_HINTS 1)
216
+ endif ()
217
+
214
218
########################################
215
219
# Compilation options to marco
216
220
########################################
@@ -420,6 +424,12 @@ endif ()
420
424
if (WAMR_BUILD_REF_TYPES EQUAL 1)
421
425
add_definitions (-DWASM_ENABLE_REF_TYPES=1)
422
426
endif ()
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 ()
423
433
if (WAMR_BUILD_GC EQUAL 1)
424
434
if (WAMR_TEST_GC EQUAL 1)
425
435
message (" GC testing enabled" )
@@ -699,8 +709,8 @@ message (
699
709
" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
700
710
" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
701
711
" \" Typed Function References\" via WAMR_BUILD_GC: ${WAMR_BUILD_GC} \n "
712
+ " \" Branch Hinting\" via WAMR_BUILD_BRANCH_HINTS: ${WAMR_BUILD_BRANCH_HINTS} \n "
702
713
" Unsupported (>= Phase4):\n "
703
- " \" Branch Hinting\"\n "
704
714
" \" Custom Annotation Syntax in the Text Format\"\n "
705
715
" \" Exception handling\"\n "
706
716
" \" Extended Constant Expressions\"\n "
0 commit comments