Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install an OCaml variant? #31

Open
vog opened this issue Sep 15, 2019 · 3 comments
Open

How to install an OCaml variant? #31

vog opened this issue Sep 15, 2019 · 3 comments

Comments

@vog
Copy link

vog commented Sep 15, 2019

Which package.json entry is needed to install a specific OCaml variant, such as "4.08.0+fp+flambda" instead of "4.08.0"?

The following does not work:

{
  "dependencies": {
    "ocaml": "4.08.0+fp+flambda",
    ...
  }
}

Error message:

No package matching:

  ocaml@=4.8.0+fp
  
  Versions available:
  
    [email protected]
    [email protected]
    [email protected]
    ...
@ManasJayanth
Copy link
Collaborator

4.08.0+fp+flambda hasn't been packaged and pushed to npm. Until then, you could

  1. Fork the esy-ocaml/ocaml repo and add the flags needed for the distro in the package.json there. Eg: here's example commit adding support for flambda

  2. Use it commit URL in your consuming app
    Example

{
  "dependencies": {
    "ocaml": "esy-ocaml/ocaml#08a3f0da5c",
    ...
  }
}

@vog
Copy link
Author

vog commented Sep 20, 2019

Thanks for the quick response!

What is needed by Esy to just support all variants listed in ocaml-variants? That is, what is the missing part here? Is this "just" a question of somebody creating a pull request for that, or is there an organizational (/ architectural) issue here?

@ManasJayanth
Copy link
Collaborator

ManasJayanth commented Sep 20, 2019 via email

EduardoRFS pushed a commit to EduardoRFS/ocaml that referenced this issue Dec 6, 2020
Mark stack optim (mirror PR293 by kc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants