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

-ppx based pre-processor executables could be able to accept arguments #5902

Closed
vicuna opened this issue Jan 22, 2013 · 1 comment
Closed

-ppx based pre-processor executables could be able to accept arguments #5902

vicuna opened this issue Jan 22, 2013 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

@vicuna vicuna commented Jan 22, 2013

Original bug ID: 5902
Reporter: meyer
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:18:27Z)
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty

Bug description

E.g. I would like to call the pre-processor executable this way:

ocamlopt -ppx "../my_extension -fail-with-code 0" test.ml

this would allow to pass some parameters to the extension.

@vicuna
Copy link
Author

@vicuna vicuna commented Jan 23, 2013

Comment author: @alainfrisch

This is already the case: -ppx takes an external command and simply adds two arguments to it. The ppx program can parse its first arguments as it wants. I've updated the "standard driver" in parsing/ast_mapper.ml to document this fact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants