Skip to content

Commit

Permalink
Fix CI (#560)
Browse files Browse the repository at this point in the history
* JS: add missing primitives

* Set upper bound 5.0.1 for js_of_ocaml
  • Loading branch information
hra687261 authored Apr 4, 2023
1 parent 963e40c commit b0cb9a7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alt-ergo-js.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ depends: [
"dune" {>= "3.0"}
"alt-ergo-lib" {= version}
"alt-ergo-parsers" {= version}
"js_of_ocaml" {>= "4.0.1"}
"js_of_ocaml" {>= "4.0.1" & <= "5.0.1"}
"js_of_ocaml-lwt"
"js_of_ocaml-ppx"
"data-encoding"
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ See more details on https://alt-ergo.ocamlpro.com/")
dune
(alt-ergo-lib (= :version))
(alt-ergo-parsers (= :version))
(js_of_ocaml (>= 4.0.1))
(js_of_ocaml (and (>= 4.0.1) (<= 5.0.1)))
js_of_ocaml-lwt
js_of_ocaml-ppx
data-encoding
Expand Down
2 changes: 2 additions & 0 deletions src/bin/js/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
)
(modules main_text_js)
(modes byte js)
(js_of_ocaml (flags --no-source-map +toplevel.js +dynlink.js))
)

(library
Expand All @@ -33,6 +34,7 @@
)
(modules worker_js options_interface)
(modes byte js)
(js_of_ocaml (flags --no-source-map +toplevel.js +dynlink.js))
)

; Rule to build a small js example running the Alt-Ergo web worker
Expand Down
10 changes: 10 additions & 0 deletions src/lib/missing_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ function camlzip_inflate_bytecode () {
function camlzip_update_crc32 () {
return BLOCK(0, 0, 0, 0)
}

//Provides: unix_getpid
function unix_getpid() {
return 0;
}

//Provides: unix_kill
function unix_kill() {
return 0;
}

0 comments on commit b0cb9a7

Please sign in to comment.