Skip to content

Commit d4f29a2

Browse files
authored
Merge pull request #1035 from bytecodealliance/main
Merge main into dev/socket_api
2 parents d4fc644 + 0065743 commit d4f29a2

File tree

184 files changed

+6914
-1853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+6914
-1853
lines changed

.github/workflows/compilation_on_android_ubuntu_macos.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- "ci/**"
1212
- "doc/**"
1313
- "test-tools/**"
14+
- ".github/workflows/compilation_on_android_ubuntu_macos.yml"
1415
# will be triggered on push events
1516
push:
1617
paths-ignore:
1718
- "assembly-script/**"
1819
- "ci/**"
1920
- "doc/**"
2021
- "test-tools/**"
22+
- ".github/workflows/compilation_on_android_ubuntu_macos.yml"
2123
# allow to be triggered manually
2224
workflow_dispatch:
2325

@@ -31,8 +33,8 @@ env:
3133
AOT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=0 -DWAMR_BUILD_LAZY_JIT=0"
3234
CLASSIC_INTERP_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=0 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_JIT=0 -DWAMR_BUILD_LAZY_JIT=0"
3335
FAST_INTERP_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=0 -DWAMR_BUILD_FAST_INTERP=1 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_JIT=0 -DWAMR_BUILD_LAZY_JIT=0"
34-
JIT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=1 -DWAMR_BUILD_LAZY_JIT=0"
3536
LAZY_JIT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=1 -DWAMR_BUILD_LAZY_JIT=1"
37+
MC_JIT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=1 -DWAMR_BUILD_LAZY_JIT=0"
3638
LLVM_CACHE_SUFFIX: "build-llvm_libraries_ex"
3739

3840
jobs:
@@ -193,8 +195,8 @@ jobs:
193195
# Running mode
194196
$CLASSIC_INTERP_BUILD_OPTIONS,
195197
$FAST_INTERP_BUILD_OPTIONS,
196-
$JIT_BUILD_OPTIONS,
197198
$LAZY_JIT_BUILD_OPTIONS,
199+
$MC_JIT_BUILD_OPTIONS,
198200
$AOT_BUILD_OPTIONS,
199201
]
200202
make_options_feature: [
@@ -232,11 +234,11 @@ jobs:
232234
make_options_feature: "-DWAMR_BUILD_DEBUG_AOT=1"
233235
# uncompatiable mode and feature
234236
# MULTI_MODULE only on INTERP mode
235-
- make_options_run_mode: $JIT_BUILD_OPTIONS
237+
- make_options_run_mode: $LAZY_JIT_BUILD_OPTIONS
236238
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
237239
- make_options_run_mode: $AOT_BUILD_OPTIONS
238240
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
239-
- make_options_run_mode: $LAZY_JIT_BUILD_OPTIONS
241+
- make_options_run_mode: $MC_JIT_BUILD_OPTIONS
240242
make_options_feature: "-DWAMR_BUILD_MULTI_MODULE=1"
241243
# SIMD only on JIT/AOT mode
242244
- make_options_run_mode: $CLASSIC_INTERP_BUILD_OPTIONS
@@ -246,10 +248,10 @@ jobs:
246248
# DEBUG_INTERP only on CLASSIC INTERP mode
247249
- make_options_run_mode: $AOT_BUILD_OPTIONS
248250
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
249-
- make_options_run_mode: $JIT_BUILD_OPTIONS
250-
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
251251
- make_options_run_mode: $LAZY_JIT_BUILD_OPTIONS
252252
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
253+
- make_options_run_mode: $MC_JIT_BUILD_OPTIONS
254+
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
253255
- make_options_run_mode: $FAST_INTERP_BUILD_OPTIONS
254256
make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1"
255257
# DEBUG_AOT only on JIT/AOT mode
@@ -258,17 +260,17 @@ jobs:
258260
- make_options_run_mode: $FAST_INTERP_BUILD_OPTIONS
259261
make_options_feature: "-DWAMR_BUILD_DEBUG_AOT=1"
260262
# TODO: DEBUG_AOT on JIT
261-
- make_options_run_mode: $JIT_BUILD_OPTIONS
262-
make_options_feature: "-DWAMR_BUILD_DEBUG_AOT=1"
263263
- make_options_run_mode: $LAZY_JIT_BUILD_OPTIONS
264264
make_options_feature: "-DWAMR_BUILD_DEBUG_AOT=1"
265+
- make_options_run_mode: $MC_JIT_BUILD_OPTIONS
266+
make_options_feature: "-DWAMR_BUILD_DEBUG_AOT=1"
265267
# MINI_LOADER only on INTERP mode
266268
- make_options_run_mode: $AOT_BUILD_OPTIONS
267269
make_options_feature: "-DWAMR_BUILD_MINI_LOADER=1"
268-
- make_options_run_mode: $JIT_BUILD_OPTIONS
269-
make_options_feature: "-DWAMR_BUILD_MINI_LOADER=1"
270270
- make_options_run_mode: $LAZY_JIT_BUILD_OPTIONS
271271
make_options_feature: "-DWAMR_BUILD_MINI_LOADER=1"
272+
- make_options_run_mode: $MC_JIT_BUILD_OPTIONS
273+
make_options_feature: "-DWAMR_BUILD_MINI_LOADER=1"
272274
include:
273275
- os: ubuntu-18.04
274276
light: ${{ needs.check_repo.outputs.traffic_light_on_ubuntu_1804 }}
@@ -318,8 +320,8 @@ jobs:
318320
# Running mode
319321
$CLASSIC_INTERP_BUILD_OPTIONS,
320322
$FAST_INTERP_BUILD_OPTIONS,
321-
$JIT_BUILD_OPTIONS,
322323
$LAZY_JIT_BUILD_OPTIONS,
324+
$MC_JIT_BUILD_OPTIONS,
323325
$AOT_BUILD_OPTIONS,
324326
]
325327
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
@@ -339,11 +341,11 @@ jobs:
339341
exclude:
340342
# TODO: a .aot compatiable problem
341343
- os: macos-latest
342-
make_options: $JIT_BUILD_OPTIONS
344+
make_options: $LAZY_JIT_BUILD_OPTIONS
343345
- os: macos-latest
344346
make_options: $AOT_BUILD_OPTIONS
345347
- os: macos-latest
346-
make_options: $LAZY_JIT_BUILD_OPTIONS
348+
make_options: $MC_JIT_BUILD_OPTIONS
347349
steps:
348350
- name: light status
349351
run: echo "matrix.os=${{ matrix.os }}, light=${{ matrix.light }}"

.github/workflows/compilation_on_sgx.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- "ci/**"
1212
- "doc/**"
1313
- "test-tools/**"
14+
- ".github/workflows/compilation_on_sgx.yml"
1415
# will be triggered on push events
1516
push:
1617
paths-ignore:
1718
- "assembly-script/**"
1819
- "ci/**"
1920
- "doc/**"
2021
- "test-tools/**"
22+
- ".github/workflows/compilation_on_sgx.yml"
2123
# allow to be triggered manually
2224
workflow_dispatch:
2325

@@ -31,8 +33,8 @@ env:
3133
AOT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=0 -DWAMR_BUILD_LAZY_JIT=0"
3234
CLASSIC_INTERP_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=0 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_JIT=0 -DWAMR_BUILD_LAZY_JIT=0"
3335
FAST_INTERP_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=0 -DWAMR_BUILD_FAST_INTERP=1 -DWAMR_BUILD_INTERP=1 -DWAMR_BUILD_JIT=0 -DWAMR_BUILD_LAZY_JIT=0"
34-
JIT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=1 -DWAMR_BUILD_LAZY_JIT=0"
3536
LAZY_JIT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=1 -DWAMR_BUILD_LAZY_JIT=1"
37+
MC_JIT_BUILD_OPTIONS: "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_FAST_INTERP=0 -DWAMR_BUILD_INTERP=0 -DWAMR_BUILD_JIT=1 -DWAMR_BUILD_LAZY_JIT=0"
3638
LLVM_CACHE_SUFFIX: "build-llvm_libraries_ex"
3739

3840
jobs:
@@ -116,8 +118,8 @@ jobs:
116118
$CLASSIC_INTERP_BUILD_OPTIONS,
117119
$FAST_INTERP_BUILD_OPTIONS,
118120
# doesn't support
119-
# $JIT_BUILD_OPTIONS,
120121
# $LAZY_JIT_BUILD_OPTIONS,
122+
# $MC_JIT_BUILD_OPTIONS,
121123
$AOT_BUILD_OPTIONS,
122124
]
123125
make_options_feature: [
@@ -208,8 +210,8 @@ jobs:
208210
$CLASSIC_INTERP_BUILD_OPTIONS,
209211
$FAST_INTERP_BUILD_OPTIONS,
210212
# doesn't support
211-
#$JIT_BUILD_OPTIONS,
212213
#$LAZY_JIT_BUILD_OPTIONS,
214+
#$MC_JIT_BUILD_OPTIONS,
213215
#$AOT_BUILD_OPTIONS,
214216
]
215217
os: [ubuntu-20.04]

.github/workflows/compilation_on_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- "ci/**"
1212
- "doc/**"
1313
- "test-tools/**"
14+
- ".github/workflows/compilation_on_windows.yml"
1415
# will be triggered on push events
1516
push:
1617
paths-ignore:
1718
- "assembly-script/**"
1819
- "ci/**"
1920
- "doc/**"
2021
- "test-tools/**"
22+
- ".github/workflows/compilation_on_windows.yml"
2123
# allow to be triggered manually
2224
workflow_dispatch:
2325

.github/workflows/spec_test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- "product-mini/**"
1414
- "tests/wamr-test-suites/spec-test-script/**"
1515
- "tests/wamr-test-suites/test_wamr.sh"
16+
- ".github/workflows/spec_test.yml"
1617
# will be triggered on push events
1718
push:
1819
paths:
@@ -23,6 +24,7 @@ on:
2324
- "product-mini/**"
2425
- "tests/wamr-test-suites/spec-test-script/**"
2526
- "tests/wamr-test-suites/test_wamr.sh"
27+
- ".github/workflows/spec_test.yml"
2628
# allow to be triggered manually
2729
workflow_dispatch:
2830

@@ -140,7 +142,13 @@ jobs:
140142
run: echo "::error::can not get prebuilt llvm libraries" && exit 1
141143

142144
- name: install Ninja and x32 support libraries
143-
run: sudo apt install -y g++-multilib libgcc-9-dev lib32gcc-9-dev ninja-build
145+
run:
146+
# Add another apt repository as some packages cannot
147+
# be downloaded with the github default repository
148+
sudo curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc &&
149+
sudo apt-add-repository https://packages.microsoft.com/ubuntu/20.04/prod &&
150+
sudo apt-get update &&
151+
sudo apt install -y g++-multilib lib32gcc-9-dev ninja-build
144152

145153
- name: run spec tests
146154
run: ./test_wamr.sh ${{ env.X86_32_TARGET_TEST_OPTIONS }} ${{ matrix.test_option }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
.cache
22
.vs
33
.vscode
44
/.idea
@@ -22,3 +22,5 @@ product-mini/platforms/linux-sgx/enclave-sample/iwasm
2222

2323
build_out
2424
tests/wamr-test-suites/workspace
25+
26+
!/test-tools/wamr-ide/VSCode-Extension/.vscode

ATTRIBUTIONS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WAMR project reused some components from other open source project:
55
- **cJson**: used in the host_tool for remotely managing wasm applications
66
- **contiki-ng**: for the coap protocol implementation
77
- **freebsd libm**: used in core/shared/platform/alios/bh_math.c
8-
- **littlevgl**: for the gui samples and wrapped the wasm graphic layer
8+
- **LVGL**: for the gui samples and wrapped the wasm graphic layer
99
- **llvm**: for the AOT/JIT compilation
1010
- **wasm-c-api**: to implement the C-APIs of wasm. using headers and sameples
1111
- **wasmtime**: for the wasi libc implementation
@@ -19,7 +19,7 @@ The WAMR fast interpreter is a clean room development. We would acknowledge the
1919
| cjson | 1.7.10 | 1.7.14 | https://github.com/DaveGamble/cJSON | https://www.cvedetails.com/vendor/19164/Cjson-Project.html |
2020
| contiki-ng (er-coap) | unspecified | 3.0 | https://github.com/contiki-os/contiki | https://www.cvedetails.com/vendor/16528/Contiki-os.html |
2121
| freebsd libm | unspecified | 13.0 | https://www.freebsd.org/ | https://www.cvedetails.com/vendor/6/Freebsd.html |
22-
| littlevgl | 6.0.1 | 7.11.0 | https://lvgl.io/ | |
22+
| LVGL | 6.0.1 | 7.11.0 | https://lvgl.io/ | |
2323
| llvm | 11.0.1 | 12.0.0 | https://llvm.org | https://www.cvedetails.com/vendor/13260/Llvm.html |
2424
| wasm-c-api | ac9b509f4df86e40e56e9b01f3f49afab0100037 | c9d31284651b975f05ac27cee0bab1377560b87e | https://github.com/WebAssembly/wasm-c-api | |
2525
| wasmtime | unspecified | v0.26.0 | https://github.com/bytecodealliance/wasmtime | |
@@ -40,11 +40,11 @@ The WAMR fast interpreter is a clean room development. We would acknowledge the
4040

4141
[COPYRIGHT](./core/shared/platform/common/math/COPYRIGHT)
4242

43-
### littlevgl
43+
### LVGL
4444

45-
[LICENCE](./samples/littlevgl/LICENCE.txt)
45+
[LICENSE](./samples/littlevgl/LICENCE.txt)
4646

47-
[LICENSE](./core/deps/lvgl/LICENCE.txt)
47+
[LICENSE](./core/app-framework/wgl/app/wa-inc/lvgl/LICENCE.txt)
4848

4949
### llvm
5050

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ add_library (iwasm_shared SHARED ${WAMR_RUNTIME_LIB_SOURCE})
130130
set_target_properties (iwasm_shared PROPERTIES OUTPUT_NAME iwasm)
131131
target_link_libraries (iwasm_shared ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS} -lm -ldl -lpthread)
132132

133+
if (MINGW)
134+
target_link_libraries (iwasm_shared -lWs2_32)
135+
endif ()
136+
133137
install (TARGETS iwasm_shared LIBRARY DESTINATION lib)
134138

135139
# HEADERS

0 commit comments

Comments
 (0)