@@ -6,43 +6,46 @@ if(CUSTOM_MUTATOR EQUAL 1)
66endif ()
77
88# Set default build options with the ability to override from the command line
9- if (NOT WAMR_BUILD_INTERP)
9+ if (NOT DEFINED WAMR_BUILD_INTERP)
1010 set (WAMR_BUILD_INTERP 1)
1111endif ()
1212
13- if (NOT WAMR_BUILD_AOT)
13+ if (NOT DEFINED WAMR_BUILD_AOT)
1414 set (WAMR_BUILD_AOT 1)
1515endif ()
1616
17- if (NOT WAMR_BUILD_JIT)
17+ if (NOT DEFINED WAMR_BUILD_JIT)
1818 set (WAMR_BUILD_JIT 0)
1919endif ()
2020
21- if (NOT WAMR_BUILD_LIBC_BUILTIN)
21+ if (NOT DEFINED WAMR_BUILD_LIBC_BUILTIN)
2222 set (WAMR_BUILD_LIBC_BUILTIN 0)
2323endif ()
2424
25- if (NOT WAMR_BUILD_LIBC_WASI)
25+ if (NOT DEFINED WAMR_BUILD_LIBC_WASI)
2626 set (WAMR_BUILD_LIBC_WASI 1)
2727endif ()
2828
29- if (NOT WAMR_BUILD_FAST_INTERP)
29+ if (NOT DEFINED WAMR_BUILD_FAST_INTERP)
3030 set (WAMR_BUILD_FAST_INTERP 1)
3131endif ()
3232
33- if (NOT WAMR_BUILD_MULTI_MODULE)
33+ if (NOT DEFINED WAMR_BUILD_MULTI_MODULE)
3434 set (WAMR_BUILD_MULTI_MODULE 0)
3535endif ()
3636
37- if (NOT WAMR_BUILD_LIB_PTHREAD)
37+ if (NOT DEFINED WAMR_BUILD_LIB_PTHREAD)
3838 set (WAMR_BUILD_LIB_PTHREAD 0)
3939endif ()
4040
41- if (NOT WAMR_BUILD_MINI_LOADER)
41+ if (NOT DEFINED WAMR_BUILD_MINI_LOADER)
4242 set (WAMR_BUILD_MINI_LOADER 0)
4343endif ()
4444
45- set (WAMR_BUILD_SIMD 1)
45+ if (NOT DEFINED WAMR_BUILD_SIMD)
46+ set (WAMR_BUILD_SIMD 1)
47+ endif ()
48+
4649set (WAMR_BUILD_REF_TYPES 1)
4750set (WAMR_BUILD_GC 1)
4851
0 commit comments