Skip to content
This repository was archived by the owner on May 2, 2024. It is now read-only.

ppxlib make it work again #33

Open
wants to merge 5 commits into
base: anmonteiro/ppxlib
Choose a base branch
from

Conversation

gabriel-bezerra
Copy link

Here are some changes I did to have it compiling on Mac M1 and working on my code base. Not all of them are mandatory. For example, the usage of Ast_builder instead of Ast_helper is not necessary to have it working, and similarly for the usage of Longident.last_exn.

@@ -1,3 +1,3 @@
open Ppxlib;

let _ = Driver.standalone();
let _ = Driver.run_as_ppx_rewriter();
Copy link
Author

Choose a reason for hiding this comment

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

Using standalone here allows for more options at runtime, but requires a wrapper around the ppx that passes --as-ppx argument before the arguments that the compiler used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant