Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Jun 2, 2021
1 parent af979c8 commit 6b8bcb1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -473,6 +473,8 @@ jobs:
run: |
cd platforms/embedded/particle
particle compile --followSymlinks photon
particle compile --followSymlinks argon
particle compile --followSymlinks pi
esp32-idf:
runs-on: ubuntu-latest
Expand Down
16 changes: 16 additions & 0 deletions extra/utils.mk
Expand Up @@ -21,3 +21,19 @@ preprocess_restore:
touch source/m3_compile.c


test_rv64:
riscv64-linux-gnu-gcc -DDEBUG -Dd_m3HasWASI \
-I./source ./source/*.c ./platforms/app/main.c \
-O3 -g0 -flto -lm -static \
-o wasm3-rv64

cd test; python3 run-wasi-test.py --fast --exec "qemu-riscv64-static ../wasm3-rv64"
rm ./wasm3-rv64

test_cpp:
clang -xc++ -Dd_m3HasWASI \
-I./source ./source/*.c ./platforms/app/main.c \
-O3 -g0 -flto -lm -static \
-o wasm3-cpp
cd test; python3 run-wasi-test.py --fast --exec "../wasm3-cpp"
rm ./wasm3-cpp
3 changes: 1 addition & 2 deletions source/m3_compile.c
Expand Up @@ -2655,11 +2655,10 @@ M3Result CompileLocals (IM3Compilation o)
{
M3Result result;

u32 numLocals = 0;
u32 numLocalBlocks;
_ (ReadLEB_u32 (& numLocalBlocks, & o->wasm, o->wasmEnd));

u32 numLocals = 0;

for (u32 l = 0; l < numLocalBlocks; ++l)
{
u32 varCount;
Expand Down

0 comments on commit 6b8bcb1

Please sign in to comment.