-
Notifications
You must be signed in to change notification settings - Fork 404
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
Inline tests: add node_flags #7957
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jérôme Vouillon <jerome.vouillon@gmail.com>
Also, I wonder if it would be better to allow full customization of the js runner. A user could then do There exist a workaround for running a js vm other than node but it's not very satisfactory.
|
Oh, I already do this to be able to write Maybe a variable Dune seems to allow to specify flags rather than whole commands. For instance, there is a |
@rgrinberg, do you have any opinion ? |
About the
People have asked to change the executable before. I don't think anyone would object such a way to set the C compiler. |
@hhugo what's the status of this? |
@rgrinberg I need to understand how to add a variable |
node
is used to run inline tests generated by Js_of_ocaml. This allows to pass specific flags to this program.So this adds an environment field
(js_of_ocaml (node_flags <flags>)
and a per library field(inline_tests (node_flags <flags>))
.Maybe that should rather be
(inline_tests (js_of_ocaml (node_flags <flags>)))
to emphasize that this only apply injs
mode?I still need to update the documentation.