Skip to content

feature(coq): coq_version variable - #5913

Closed
rgrinberg wants to merge 1 commit into
mainfrom
ps/rr/feature_coq___coq_version_variable
Closed

rgrinberg wants to merge 1 commit into
mainfrom
ps/rr/feature_coq___coq_version_variable

Conversation

@rgrinberg

@rgrinberg rgrinberg commented Jun 22, 2022 •

Copy link
Copy Markdown
Member
  • coq_version
  • coq_config macro
  • documentation
  • CHANGES
  • Tests

Signed-off-by: Rudi Grinberg <[email protected]>

ps-id: 1D3DEAE1-5C8A-4736-B72F-84E30AB1E036
Comment thread src/dune_lang/pform.ml
| Corrected_suffix
| Inline_tests
| Toolchain
| Coq_version

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Alizter commented Jun 26, 2022

Copy link
Copy Markdown
Collaborator

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

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants