@@ -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########################################
@@ -675,7 +679,13 @@ if (WAMR_BUILD_INSTRUCTION_METERING EQUAL 1)
675679 message (" Instruction metering enabled" )
676680 add_definitions (-DWASM_ENABLE_INSTRUCTION_METERING=1 )
677681endif ()
678-
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 ()
679689########################################
680690# Show Phase4 Wasm proposals status.
681691########################################
@@ -699,11 +709,11 @@ message (
699709" \" Tail call\" via WAMR_BUILD_TAIL_CALL: ${WAMR_BUILD_TAIL_CALL} \n "
700710" \" Threads\" via WAMR_BUILD_SHARED_MEMORY: ${WAMR_BUILD_SHARED_MEMORY} \n "
701711" \" 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 "
702713" Unsupported (>= Phase4):\n "
703714" \" Branch Hinting\"\n "
704715" \" Custom Annotation Syntax in the Text Format\"\n "
705716" \" Exception handling\"\n "
706- " \" Extended Constant Expressions\"\n "
707717" \" Import/Export of Mutable Globals\"\n "
708718" \" JS String Builtins\"\n "
709719" \" Relaxed SIMD\"\n "
0 commit comments