@@ -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_EXTENDED_CONST_EXPR)
215+ set (WAMR_BUILD_EXTENDED_CONST_EXPR 0)
216+ endif ()
217+
214218########################################
215219# Compilation options to marco
216220########################################
@@ -671,7 +675,17 @@ if (WAMR_BUILD_AOT_VALIDATOR EQUAL 1)
671675 message (" AOT validator enabled" )
672676 add_definitions (-DWASM_ENABLE_AOT_VALIDATOR=1 )
673677endif ()
674-
678+ if (WAMR_BUILD_INSTRUCTION_METERING EQUAL 1)
679+ message (" Instruction metering enabled" )
680+ add_definitions (-DWASM_ENABLE_INSTRUCTION_METERING=1 )
681+ endif ()
682+ if (WAMR_BUILD_EXTENDED_CONST_EXPR EQUAL 1)
683+ message (" Extended constant expression enabled" )
684+ add_definitions (-DWASM_ENABLE_EXTENDED_CONST_EXPR=1 )
685+ else ()
686+ message (" Extended constant expression disabled" )
687+ add_definitions (-DWASM_ENABLE_EXTENDED_CONST_EXPR=0 )
688+ endif ()
675689########################################
676690# Show Phase4 Wasm proposals status.
677691########################################
@@ -695,11 +709,11 @@ message (
695709" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
696710" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
697711" \" Typed Function References\" via WAMR_BUILD_GC: ${WAMR_BUILD_GC} \n "
712+ " \" Extended Constant Expressions\" via WAMR_BUILD_EXTENDED_CONST_EXPR: ${WAMR_BUILD_EXTENDED_CONST_EXPR} \n "
698713" Unsupported (>= Phase4):\n "
699714" \" Branch Hinting\"\n "
700715" \" Custom Annotation Syntax in the Text Format\"\n "
701716" \" Exception handling\"\n "
702- " \" Extended Constant Expressions\"\n "
703717" \" Import/Export of Mutable Globals\"\n "
704718" \" JS String Builtins\"\n "
705719" \" Relaxed SIMD\"\n "
0 commit comments