Skip to content

[BUG] Instructions for compiling toplevels ? #1299

@dbuenzli

Description

@dbuenzli

Are there instructions somewhere on how you are supposed to compile a toplevel ? I couldn't find that mentioned on the website.

It seems something changed and my old runes no longer work. For example [1]. I'm not sure why I added a --no-runtime in these. Maybe I can remove that and the corresponding +runtime.js but there is also this +toplevel.js and +dynlink.js that I'm no longer sure about.

Can't all that be solve by simply linking againt the toplevel library maybe ?

[1]:

> '/Users/dbuenzli/.opam/4.14.0/bin/js_of_ocaml' 
'-o' '/private/tmp/bla/_b0/brzo/ocaml-top-html/a.js' 
'--extern-fs' '--toplevel' '--no-runtime' 
'--export' '/private/tmp/bla/_b0/brzo/ocaml-top-html/top_mod_names' 
'+runtime.js' '+toplevel.js' '+dynlink.js' 
'/private/tmp/bla/_b0/brzo/ocaml-top-html/a.out'
/Users/dbuenzli/.opam/4.14.0/bin/js_of_ocaml: Error: Fl_package_base.No_such_package("runtime.js", "")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions