Skip to content

New release of js_of_ocaml breaks picos.thread #332

@hhugo

Description

@hhugo

The new release of jsoo ocaml/opam-repository#26932 breaks picos.thread on ocaml < 5 because it no longer exports a caml_ml_domain_id runtime value on ocaml < 5.
I don't rely understand why picos is build with ocaml 4.

Is it ok to apply the following patch to thread.ocaml4.js ?

//Provides: caml_thread_self
//Requires: caml_ml_domain_id, caml_failwith, caml_thread
function caml_thread_self(unit) {
-   if (caml_ml_domain_id(unit) != caml_thread[1])
-    caml_failwith('caml_thread_self: spawning of domains is not supported')
  return caml_thread
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions