@@ -122,8 +122,6 @@ jobs:
122122 " -DWAMR_BUILD_MEMORY_PROFILING=1" ,
123123 " -DWAMR_BUILD_MULTI_MODULE=1" ,
124124 " -DWAMR_BUILD_PERF_PROFILING=1" ,
125- " -DWAMR_BUILD_REF_TYPES=1" ,
126- " -DWAMR_BUILD_SIMD=1" ,
127125 " -DWAMR_BUILD_TAIL_CALL=1" ,
128126 " -DWAMR_DISABLE_HW_BOUND_CHECK=1" ,
129127 " -DWAMR_BUILD_MEMORY64=1" ,
@@ -145,11 +143,6 @@ jobs:
145143 make_options_feature : " -DWAMR_BUILD_MULTI_MODULE=1"
146144 - make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
147145 make_options_feature : " -DWAMR_BUILD_MULTI_MODULE=1"
148- # SIMD only on JIT/AOT mode
149- - make_options_run_mode : $CLASSIC_INTERP_BUILD_OPTIONS
150- make_options_feature : " -DWAMR_BUILD_SIMD=1"
151- - make_options_run_mode : $FAST_INTERP_BUILD_OPTIONS
152- make_options_feature : " -DWAMR_BUILD_SIMD=1"
153146 # DEBUG_INTERP only on CLASSIC INTERP mode
154147 - make_options_run_mode : $AOT_BUILD_OPTIONS
155148 make_options_feature : " -DWAMR_BUILD_DEBUG_INTERP=1"
@@ -230,6 +223,15 @@ jobs:
230223 include :
231224 - os : ubuntu-22.04
232225 llvm_cache_key : ${{ needs.build_llvm_libraries_on_ubuntu.outputs.cache_key }}
226+ # classic interp doesn't support SIMD
227+ - make_options_run_mode : $CLASSIC_INTERP_BUILD_OPTIONS
228+ extra_options : " -DWAMR_BUILD_SIMD=0"
229+ # fast jit doesn't support SIMD
230+ - make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
231+ extra_options : " -DWAMR_BUILD_SIMD=0"
232+ # multi-tier jit doesn't support SIMD
233+ - make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
234+ extra_options : " -DWAMR_BUILD_SIMD=0"
233235
234236 steps :
235237 - name : checkout
@@ -257,15 +259,15 @@ jobs:
257259 if : matrix.platform == 'linux'
258260 run : |
259261 mkdir build && cd build
260- cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }}
262+ cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options }}
261263 cmake --build . --config Release --parallel 4
262264 working-directory : product-mini/platforms/${{ matrix.platform }}
263265
264266 - name : Build iwasm for android
265267 if : matrix.platform == 'android'
266268 run : |
267269 mkdir build && cd build
268- cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} \
270+ cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options }} \
269271 -DWAMR_BUILD_TARGET=X86_64
270272 cmake --build . --config Release --parallel 4
271273 working-directory : product-mini/platforms/${{ matrix.platform }}
@@ -295,8 +297,6 @@ jobs:
295297 " -DWAMR_BUILD_MEMORY_PROFILING=1" ,
296298 " -DWAMR_BUILD_MULTI_MODULE=1" ,
297299 " -DWAMR_BUILD_PERF_PROFILING=1" ,
298- " -DWAMR_BUILD_REF_TYPES=1" ,
299- " -DWAMR_BUILD_SIMD=1" ,
300300 " -DWAMR_BUILD_TAIL_CALL=1" ,
301301 " -DWAMR_DISABLE_HW_BOUND_CHECK=1" ,
302302 " -DWAMR_BUILD_MEMORY64=1" ,
@@ -339,6 +339,16 @@ jobs:
339339 make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
340340 - make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
341341 make_options_feature : " -DWAMR_BUILD_MULTI_MEMORY=1"
342+ include :
343+ # classic interp doesn't support SIMD
344+ - make_options_run_mode : $CLASSIC_INTERP_BUILD_OPTIONS
345+ extra_options : " -DWAMR_BUILD_SIMD=0"
346+ # fast jit doesn't support SIMD
347+ - make_options_run_mode : $FAST_JIT_BUILD_OPTIONS
348+ extra_options : " -DWAMR_BUILD_SIMD=0"
349+ # multi-tier jit doesn't support SIMD
350+ - make_options_run_mode : $MULTI_TIER_JIT_BUILD_OPTIONS
351+ extra_options : " -DWAMR_BUILD_SIMD=0"
342352 steps :
343353 - name : Install dependencies
344354 run : |
@@ -357,7 +367,7 @@ jobs:
357367 - name : Build iwasm
358368 run : |
359369 mkdir build && cd build
360- cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} -DCMAKE_C_COMPILER=gcc-4.8 -DCMAKE_CXX_COMPILER=g++-4.8
370+ cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options }} -DCMAKE_C_COMPILER=gcc-4.8 -DCMAKE_CXX_COMPILER=g++-4.8
361371 cmake --build . --config Release --parallel 4
362372 working-directory : wamr/product-mini/platforms/linux
363373
@@ -385,6 +395,22 @@ jobs:
385395 exclude :
386396 - make_options : $MULTI_TIER_JIT_BUILD_OPTIONS
387397 sanitizer : asan
398+ include :
399+ # classic interp doesn't support SIMD
400+ - make_options : $CLASSIC_INTERP_BUILD_OPTIONS
401+ extra_options : " -DWAMR_BUILD_SIMD=0"
402+ # fast jit doesn't support Multi-module and SIMD
403+ - make_options : $FAST_JIT_BUILD_OPTIONS
404+ extra_options : " -DWAMR_BUILD_SIMD=0 -DWAMR_BUILD_MULTI_MODULE=0"
405+ # multi-tier jit doesn't support Multi-module and SIMD
406+ - make_options : $MULTI_TIER_JIT_BUILD_OPTIONS
407+ extra_options : " -DWAMR_BUILD_SIMD=0 -DWAMR_BUILD_MULTI_MODULE=0"
408+ # LLVM JIT doesn't support Multi-module
409+ - make_options : $LLVM_LAZY_JIT_BUILD_OPTIONS
410+ extra_options : " -DWAMR_BUILD_MULTI_MODULE=0"
411+ - make_options : $LLVM_EAGER_JIT_BUILD_OPTIONS
412+ extra_options : " -DWAMR_BUILD_MULTI_MODULE=0"
413+
388414 steps :
389415 - name : checkout
390416 uses : actions/checkout@v5
@@ -422,7 +448,7 @@ jobs:
422448 - name : Build Sample [wasm-c-api]
423449 run : |
424450 VERBOSE=1
425- cmake -S . -B build ${{ matrix.make_options }} \
451+ cmake -S . -B build ${{ matrix.make_options }} ${{ matrix.extra_options }} \
426452 -D WAMR_BUILD_SANITIZER="${{matrix.sanitizer}}" \
427453 -D WAMR_BUILD_QUICK_AOT_ENTRY=0
428454 cmake --build build --config Release --parallel 4
0 commit comments