-
Notifications
You must be signed in to change notification settings - Fork 409
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
Allow use of ppx in dune #9223
base: main
Are you sure you want to change the base?
Allow use of ppx in dune #9223
Commits on Apr 22, 2024
-
This adds an `(include_preprocessed_sources)` stanza which generates rules to promote preprocessed version of sources. It's used in a `ppx/` folder at the project root. For any library or executable stanza with a `(preprocess (pps ...))` field in <path>, it will generate promotion rules for preprocessed versions in `ppx/<path>`. It also modifies `duneboot.ml` to use `ppx/<path>.ml(i)` instead of `<path>.ml(i)` if it exists, allowing us to use ppx in development without making it a build dependency. Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4e7806 - Browse repository at this point
Copy the full SHA b4e7806View commit details -
Fix include_preprocessed_sources to work with executables
It was naively reusing the Source_tree_map_reduce from the utop rules generation. It now uses its own version that collects modules to preprocess for libraries and executables. Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb2f7ea - Browse repository at this point
Copy the full SHA bb2f7eaView commit details -
Exclude rather than include dirs in include_preprocessed_sources
The stanza will now generate rules by scanning the whole project except for the listed exlude dirs. This allow us to exclude the places that uses ppx but aren't necessary for bootstrapping such as the `bench/` directory. Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4adba2c - Browse repository at this point
Copy the full SHA 4adba2cView commit details -
Restrict include_preprocessed_sources to dune only
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9c86e39 - Browse repository at this point
Copy the full SHA 9c86e39View commit details -
Exclude otherlibs from include_preprocessed_sources
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 79119bb - Browse repository at this point
Copy the full SHA 79119bbView commit details -
Add proper description to include_preprocessed_sources extension
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df9f1d6 - Browse repository at this point
Copy the full SHA df9f1d6View commit details -
Exclude ppx/ generated files from git diffs and git grep
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24d942e - Browse repository at this point
Copy the full SHA 24d942eView commit details -
Add documentation and Makefile target for include_pp_sources
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 978d96e - Browse repository at this point
Copy the full SHA 978d96eView commit details -
Bump minimum lang version for include_pp_sources to 3.13
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ecec6d1 - Browse repository at this point
Copy the full SHA ecec6d1View commit details -
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8e82345 - Browse repository at this point
Copy the full SHA 8e82345View commit details -
Build ppx/ as part of @check alias
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a943f7 - Browse repository at this point
Copy the full SHA 7a943f7View commit details -
Format preprocessed files before promotion
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2f34aa4 - Browse repository at this point
Copy the full SHA 2f34aa4View commit details
Commits on Apr 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9498b87 - Browse repository at this point
Copy the full SHA 9498b87View commit details -
Configuration menu - View commit details
-
Copy full SHA for a93e362 - Browse repository at this point
Copy the full SHA a93e362View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8d9b86 - Browse repository at this point
Copy the full SHA b8d9b86View commit details
Commits on Jun 3, 2024
-
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ceede31 - Browse repository at this point
Copy the full SHA ceede31View commit details -
Use ppxlib's driver optional output mode
Signed-off-by: Nathan Rebours <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6772dd6 - Browse repository at this point
Copy the full SHA 6772dd6View commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1d190df - Browse repository at this point
Copy the full SHA 1d190dfView commit details