Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Oct 3, 2024
1 parent 4985ad1 commit b0cadb1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-wasm_of_ocaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ jobs:
with:
path: wasm_of_ocaml

- name: Pin faked binaryen-bin package
with:
path: faked-binaryen-bin
run: |
echo opam-version: '"2.0"' > binaryen-bin.opam
opam pin -n .
- name: Checkout Jane Street opam repository
uses: actions/checkout@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ jobs:
- run: opam pin --with-version `< VERSION` . --best-effort
if: ${{ matrix.skip-test }}

- run: opam pin --with-version `< VERSION`
- run: |
opam pin --with-version `< VERSION` .
opam install . --deps-only --with-test
if: ${{ !matrix.skip-test }}
- run: opam exec -- make all
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/bigarray.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@
(ref.i31 (array.get $string (local.get $s) (local.get $i))))
(local.set $i (i32.add (local.get $i) (i32.const 1)))
(br $loop))))
(call $wrap (extern.internalize (local.get $ta))))
(call $wrap (any.convert_extern (local.get $ta))))

(func (export "caml_ba_get_kind") (param (ref eq)) (result i32)
(struct.get $bigarray $ba_kind (ref.cast (ref $bigarray) (local.get 0))))
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/stdlib.wat
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
(field (mut (ref eq)))
(field (mut (ref null $assoc)))))

(type $assoc_array (array (field (mut (ref null $assoc)))))
(type $assoc_array (array (mut (ref null $assoc))))

(global $Named_value_size i32 (i32.const 13))

Expand Down

0 comments on commit b0cadb1

Please sign in to comment.