Skip to content

Missing primitive appears without debug flags #33

@kit-ty-kate

Description

@kit-ty-kate

While compiling cumulus with the latest js_of_ocaml compiler (21ac186), I've been surprised by the following behavior:

$ js_of_ocaml -noruntime +js_of_ocaml/runtime.js +eliom.client/eliom_client.js +js_of_ocaml/weak.js +js_of_ocaml/classlist.js src/client/cumulus.byte -o src/client/cumulus.js
Missing primitives:
  __eliom_request_data
  …
$ js_of_ocaml -noruntime -pretty -debuginfo -noinline +js_of_ocaml/runtime.js +eliom.client/eliom_client.js +js_of_ocaml/weak.js +js_of_ocaml/classlist.js src/client/cumulus.byte -o src/client/cumulus.js
Missing primitives:
   …

Namely, the missing primitive __eliom_request_data appears only without the debug flags -pretty -debuginfo -noinline.

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