iocaml icon indicating copy to clipboard operation
iocaml copied to clipboard

Starting ocaml with additional parameters

Open ysalmon opened this issue 9 years ago • 1 comments

How can I configure the iocaml kernel to start the underlying ocaml toplevel with additional parameters ?

I just managed to run jupyter with iocaml-kernel with Arthur Charguéraud compiler 4.02.0+improved-errors (https://github.com/charguer/ocaml) , but I need to pass it the -easy command line parameter to get the enhanced error messages.

ysalmon avatar Jun 02 '16 20:06 ysalmon

iocaml doesnt parse toplevel options, so you will need to compile a custom version. For reference I did exactly this for iocamljs a while back;

https://github.com/andrewray/iocamljs/commit/70c72d79db27c91fb53df685d421d749d82ffc82

Not sure exactly what options you will need for the latest version, but it'll be something similar.

andrewray avatar Jun 02 '16 21:06 andrewray