Skip to content

Commit 10e39cb

Browse files
committed
Add changes for workflows to test.
1 parent 9f50a73 commit 10e39cb

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

.github/workflows/compilation_on_android_ubuntu.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
- name: Build wamrc
124124
run: |
125125
mkdir build && cd build
126-
cmake .. -DCMAKE_C_FLAGS="-Werror"
126+
cmake .. -DCMAKE_C_FLAGS="-Werror" -DWAMR_BUILD_COMPONENT_MODEL=0
127127
cmake --build . --config Release --parallel 4
128128
working-directory: wamr-compiler
129129

@@ -295,15 +295,15 @@ jobs:
295295
if: matrix.platform == 'linux'
296296
run: |
297297
mkdir build && cd build
298-
cmake .. -DCMAKE_C_FLAGS="-Werror" ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options}}
298+
cmake .. -DCMAKE_C_FLAGS="-Werror" -DWAMR_BUILD_COMPONENT_MODEL=0 ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} ${{ matrix.extra_options}}
299299
cmake --build . --config Release --parallel 4
300300
working-directory: product-mini/platforms/${{ matrix.platform }}
301301

302302
- name: Build iwasm for android
303303
if: matrix.platform == 'android'
304304
run: |
305305
mkdir build && cd build
306-
cmake .. -DCMAKE_C_FLAGS="-Werror" ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} \
306+
cmake .. -DCMAKE_C_FLAGS="-Werror" -DWAMR_BUILD_COMPONENT_MODEL=0 ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} \
307307
-DWAMR_BUILD_TARGET=X86_64
308308
cmake --build . --config Release --parallel 4
309309
working-directory: product-mini/platforms/${{ matrix.platform }}
@@ -348,7 +348,7 @@ jobs:
348348
- name: Build wamrc
349349
run: |
350350
mkdir build && cd build
351-
cmake ..
351+
cmake .. -DWAMR_BUILD_COMPONENT_MODEL=0
352352
cmake --build . --config Release --parallel 4
353353
working-directory: wamr-compiler
354354

@@ -472,7 +472,7 @@ jobs:
472472
if: (!endsWith(matrix.make_options, '_INTERP_BUILD_OPTIONS'))
473473
run: |
474474
mkdir build && cd build
475-
cmake ..
475+
cmake .. -DWAMR_BUILD_COMPONENT_MODEL=0
476476
cmake --build . --config Release --parallel 4
477477
working-directory: wamr-compiler
478478

@@ -523,7 +523,7 @@ jobs:
523523
- name: Build wamrc
524524
run: |
525525
mkdir build && cd build
526-
cmake ..
526+
cmake .. -DWAMR_BUILD_COMPONENT_MODEL=0
527527
cmake --build . --config Release --parallel 4
528528
working-directory: wamr-compiler
529529

.github/workflows/compilation_on_windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
cd product-mini/platforms/windows
9797
mkdir build && cd build
98-
cmake .. ${{ matrix.build_options }}
98+
cmake .. -DWAMR_BUILD_COMPONENT_MODEL=0 ${{ matrix.build_options }}
9999
cmake --build . --config Release --parallel 4
100100
101101
build_wamrc:
@@ -130,7 +130,7 @@ jobs:
130130

131131
- name: Build wamrc
132132
run: |
133-
cmake -S . -B build
133+
cmake -S . -B build -DWAMR_BUILD_COMPONENT_MODEL=0
134134
cmake --build build --config Release --parallel 4
135135
working-directory: wamr-compiler
136136

core/iwasm/aot/aot_runtime.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ bh_static_assert(offsetof(AOTModuleInstance, cur_exception)
5050
== 13 * sizeof(uint64));
5151
bh_static_assert(offsetof(AOTModuleInstance, c_api_func_imports)
5252
== 13 * sizeof(uint64) + 128 + 7 * sizeof(uint64));
53+
#if WASM_ENABLE_COMPONENT_MODEL != 0
5354
bh_static_assert(offsetof(AOTModuleInstance, global_table_data)
5455
== 13 * sizeof(uint64) + 128 + 14 * sizeof(uint64)
5556
#if WASM_ENABLE_COMPONENT_MODEL != 0
56-
+ sizeof(void *) + sizeof(uint64)
57+
bh_static_assert(offsetof(AOTModuleInstance, global_table_data)
58+
== 13 * sizeof(uint64) + 128 + 14 * sizeof(uint64)
59+
+ sizeof(void *) + sizeof(uint64));
60+
#else
61+
bh_static_assert(offsetof(AOTModuleInstance, global_table_data)
62+
== 13 * sizeof(uint64) + 128 + 14 * sizeof(uint64));
5763
#endif
58-
);
5964

6065
bh_static_assert(sizeof(AOTMemoryInstance) == 120);
6166
bh_static_assert(offsetof(AOTTableInstance, elems) == 24);

tests/regression/ba-issues/build_wamr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function build_iwasm() {
2626
if [ -d build-iwasm-$2 ]; then rm -rf build-iwasm-$2; else mkdir build-iwasm-$2; fi &&
2727
cd build-iwasm-$2 &&
2828
cmake ${WAMR_DIR}/product-mini/platforms/${PLATFORM} $1 \
29-
-DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_SANITIZER=asan &&
29+
-DCMAKE_BUILD_TYPE=Debug -DWAMR_BUILD_SANITIZER=asan \
30+
-DWAMR_BUILD_COMPONENT_MODEL=0 &&
3031
make -j 4
3132
if [ "$?" != 0 ]; then
3233
echo -e "build iwasm failed"

tests/wamr-test-suites/test_wamr.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,7 @@ function trigger()
11591159
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_BULK_MEMORY=1"
11601160
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_REF_TYPES=1"
11611161
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_LIBC_WASI=0"
1162+
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_COMPONENT_MODEL=0"
11621163

11631164
if [[ ${ENABLE_MULTI_MODULE} == 1 ]];then
11641165
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_MULTI_MODULE=1"

0 commit comments

Comments
 (0)