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

Port to the [dune] build system. #615

Merged
merged 58 commits into from
Jun 24, 2024
Merged

Port to the [dune] build system. #615

merged 58 commits into from
Jun 24, 2024

Conversation

rlepigre
Copy link
Contributor

@rlepigre rlepigre commented Mar 20, 2024

This goes a bit further than #567, but there are still things to figure out:

  • Making sure CI still works.
  • Figure out whether there are requirements for Coq CI.
  • Figure out how to turn more tests into cram tests (to get more silent build).
  • Figure out how to explicitly tell dune about the generated coq-builtin[-synterp].elpi files so that we can promote.
  • Fix doc target

Comment on lines 1 to 21
(coq.theory
(name elpi.apps.derive.elpi)
(package coq-elpi)
(theories elpi))

(rule
(target dummy.v)
(deps
(glob_files *.elpi))
(action
(with-stdout-to %{target}
(echo ""))))

(install
(files
(glob_files (*.elpi with_prefix coq/user-contrib/elpi/apps/derive/elpi/)))
(section lib_root)
(package coq-elpi))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This setup seems to work pretty well, and takes care of installing .elpi files.

The only drawback is that we need to put these files under a different path (here files are found under elpi.apps.derive.elpi, while they were under elpi.apps.derive before). That's probably not a big deal?

Comment on lines +1 to +12
(executable
(name gen_doc)
(libraries elpi_plugin))

(rule
(targets
coq-builtin.elpi
coq-builtin-synterp.elpi
elpi-builtin.elpi)
(deps gen_doc.exe)
(mode promote)
(action (run ./gen_doc.exe)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With this setup, the Elpi Document Builtins is probably useless?

@rlepigre rlepigre force-pushed the dune branch 2 times, most recently from e47fb34 to e8adef6 Compare March 24, 2024 15:21
@gares
Copy link
Contributor

gares commented Jun 3, 2024

I'll rebase and try to fix the doc target, which is a blocker

@gares gares marked this pull request as ready for review June 21, 2024 13:09
@gares gares merged commit 63face8 into LPCIC:master Jun 24, 2024
57 of 60 checks passed
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.

2 participants