We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I'm trying to use both cppo and logs-ppx preprocessing in my dune file, I've read:
https://github.com/ocaml-community/cppo https://dune.readthedocs.io/en/stable/quick-start.html#using-cppo ocaml/dune#171 ocsigen/lwt#411 ocaml/dune#7373
but can't get a solution, could you help me? I'm using latest opam with ocaml 5.0.0. Thanks.
My latest poor attempt is:
(rule ((targets (globals.ml)) (deps (globals.cppo.ml)) (action (run ${bin:cppo} ${<} -o ${@}))))
(rule ((targets (plot2d.ml)) (deps (plot2d.cppo.ml)) (action (run ${bin:cppo} ${<} -o ${@}))))
(executables (names eqfrex) (libraries dspml plwrap lablgtk3 cairo2 plplot plcairo react logs logs.fmt) (preprocess (pps logs-ppx) ) (modes (native exe) (byte exe)) )
Regards.
The text was updated successfully, but these errors were encountered:
This would seem to be a dune question, not a cppo question.
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm trying to use both cppo and logs-ppx preprocessing in my dune file, I've read:
https://github.com/ocaml-community/cppo
https://dune.readthedocs.io/en/stable/quick-start.html#using-cppo
ocaml/dune#171
ocsigen/lwt#411
ocaml/dune#7373
but can't get a solution, could you help me? I'm using latest opam with ocaml 5.0.0.
Thanks.
My latest poor attempt is:
(rule
((targets (globals.ml))
(deps (globals.cppo.ml))
(action (run ${bin:cppo} ${<} -o ${@}))))
(rule
((targets (plot2d.ml))
(deps (plot2d.cppo.ml))
(action (run ${bin:cppo} ${<} -o ${@}))))
(executables
(names eqfrex)
(libraries dspml plwrap lablgtk3 cairo2 plplot plcairo react logs logs.fmt)
(preprocess
(pps logs-ppx)
)
(modes (native exe) (byte exe))
)
Regards.
The text was updated successfully, but these errors were encountered: