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

feature(coq): coq_version variable #5913

Closed
wants to merge 1 commit into from

Conversation

rgrinberg
Copy link
Member

@rgrinberg rgrinberg commented Jun 22, 2022

  • coq_version
  • coq_config macro
  • documentation
  • CHANGES
  • Tests

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: 1D3DEAE1-5C8A-4736-B72F-84E30AB1E036
@@ -46,6 +46,7 @@ module Var = struct
| Corrected_suffix
| Inline_tests
| Toolchain
| Coq_version
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess we could add a parameter to this to have a %{coq:var} form, WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ejgallego I am currently working on a coq-config macro that will subsume all of this

let impl bin =
let* _ = Build_system.build_file bin in
let+ line =
Memo.of_non_reproducible_fiber
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean that even within a single run we will re-exec?

All Coq config is deterministic, just set a Coq configure time.

Copy link
Collaborator

Choose a reason for hiding this comment

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

And guarantee to change only if the hash changes.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It should only run once since it is memoed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is memoed as non reproducible tho.

@Alizter
Copy link
Collaborator

Alizter commented Jun 26, 2022

FTR I am still working on the coq-config thing, but I will be unable to work on it much this week.

@Alizter Alizter mentioned this pull request Jul 13, 2022
2 tasks
@Alizter Alizter mentioned this pull request Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants