Skip to content

Conversation

gasche
Copy link
Member

@gasche gasche commented Dec 30, 2017

This is a pull request to fix #45, #190. I haven't thought very hard about the feature, and this is a minimalist implementation, that only passes the options unchanged to ocamlfind, and in particular is only available when -use-ocamlfind is used.

if List.mem "ocaml" tags then begin
pflag tags "syntax" ~doc_param:"camlp4o"
(fun pkg -> S [A "-syntax"; A pkg]);
pflag tags "ppopt" ~doc_param:"camlp4-arg"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-pp is not just camlp4, isn't it? ocaml-m17n also uses -pp.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reused the name from the ocamlfind documentation, and it is just informative (there is no semantics on the doc_param). Yet your point is completely correct and I will change it to use pparg instead.

@gasche gasche force-pushed the ppopt-ppxopt branch 2 times, most recently from da0ec9d to ed6a0d2 Compare December 31, 2017 15:39
@gasche gasche mentioned this pull request Jan 2, 2018
@gasche gasche merged commit 73672a7 into ocaml:master Jan 5, 2018
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

Successfully merging this pull request may close these issues.

ppopt and ppxopt options

2 participants