Skip to content

Commit

Permalink
Misc: promote to 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Apr 11, 2024
1 parent 6272f3c commit d09852b
Show file tree
Hide file tree
Showing 12 changed files with 2,394 additions and 444 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ jobs:
skip-effects: false
skip-test: false
skip-doc: true
- os: ubuntu-latest
ocaml-compiler: ocaml-variants.5.3.0+trunk
skip-effects: false
skip-test: false
skip-doc: true

runs-on: ${{ matrix.os }}

Expand All @@ -83,8 +88,7 @@ jobs:
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
opam: https://github.com/ocaml/opam-repository.git
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test
opam-depext: false

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
if: runner.os != 'Windows'
Expand All @@ -93,8 +97,12 @@ jobs:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test
opam-depext: false

- run: opam pin add ppxlib git+https://github.com/hhugo/ppxlib.git#trunk-support-53 --no-action
if: ${{ matrix.ocaml-compiler == 'ocaml-variants.5.3.0+trunk' }}

- run: opam pin add ./ --no-action

- run: opam install . --best-effort
if: ${{ matrix.skip-test }}
Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
js primitives in bytecode/native. It should help if one tries
to understand the source of the call with gdb (see #677)
* Runtime: re-enable marshalling of floats, disabled in jsoo 2.0
* Compiler: initial support for OCaml 5.3

## Bug fixes

Expand Down
5 changes: 3 additions & 2 deletions compiler/lib/magic_number.ml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ let v =
| 5 :: 00 :: _ -> 32
| 5 :: 01 :: _ -> 33
| 5 :: 02 :: _ -> 34
| 5 :: 03 :: _ -> 35
| _ ->
if Ocaml_version.compare current [ 4; 8 ] < 0
if Ocaml_version.compare current [ 4; 08 ] < 0
then failwith "OCaml version unsupported. Upgrade to OCaml 4.08 or newer."
else (
assert (Ocaml_version.compare current [ 5; 3 ] >= 0);
assert (Ocaml_version.compare current [ 5; 04 ] >= 0);
failwith "OCaml version unsupported. Upgrade js_of_ocaml.")

let current_exe = "Caml1999X", v
Expand Down
1 change: 0 additions & 1 deletion compiler/lib/parse_bytecode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,6 @@ and compile infos pc state instrs =
| true -> State.pop 2 state
| false -> State.pop 3 state
in

compile
infos
(pc + 1)
Expand Down
2 changes: 0 additions & 2 deletions compiler/tests-check-prim/main.output5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Missing
From main.bc:
caml_alloc_dummy_function
caml_continuation_use
caml_drop_continuation
caml_dynlink_add_primitive
caml_dynlink_close_lib
caml_dynlink_get_current_libs
Expand Down Expand Up @@ -171,7 +170,6 @@ caml_spacetime_only_works_for_native_code
caml_sys_const_naked_pointers_checked

From +toplevel.js:
caml_get_section_table
caml_static_alloc
caml_static_free
caml_terminfo_backup
Expand Down
2 changes: 0 additions & 2 deletions compiler/tests-check-prim/unix-unix.output5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Missing
From unix.bc:
caml_alloc_dummy_function
caml_continuation_use
caml_drop_continuation
caml_dynlink_add_primitive
caml_dynlink_close_lib
caml_dynlink_get_current_libs
Expand Down Expand Up @@ -282,7 +281,6 @@ caml_spacetime_only_works_for_native_code
caml_sys_const_naked_pointers_checked

From +toplevel.js:
caml_get_section_table
caml_static_alloc
caml_static_free
caml_terminfo_backup
Expand Down
Loading

0 comments on commit d09852b

Please sign in to comment.