Skip to content

coq: more resilient config query#6563

Merged
Alizter merged 1 commit intoocaml:mainfrom
Alizter:ps/rr/coq__more_resilient_config_query
Dec 2, 2022
Merged

coq: more resilient config query#6563
Alizter merged 1 commit intoocaml:mainfrom
Alizter:ps/rr/coq__more_resilient_config_query

Conversation

@Alizter
Copy link
Copy Markdown
Collaborator

@Alizter Alizter commented Nov 24, 2022

Before we were failing if for some reason coqc --config failed when selecting the native mode. This makes it so that if for whatever reason coqc --config doesn't succeed then we default to vo mode.

Signed-off-by: Ali Caglayan alizter@gmail.com

| _ -> Coq_mode.VoOnly)
let+ config = Coq_config.make_opt ~coqc in
match config with
| None -> Coq_mode.VoOnly
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

A case where we might not want this to happen is if we compose with the coq repo with native enabled and coqc --config doesn't work properly. Then this will silently not have the native rules. Perhaps a warning should be put here when this happens?

@Alizter Alizter requested a review from ejgallego November 24, 2022 19:42
Before we were failing if for some reason `coqc --config` failed when
selecting the native mode. This makes it so that if for whatever
reason `coqc --config` doesn't succeed then we default to vo mode.

Signed-off-by: Ali Caglayan <alizter@gmail.com>

<!-- ps-id: b7e30052-8c48-411a-b2b1-32b3b60604f8 -->
@Alizter Alizter force-pushed the ps/rr/coq__more_resilient_config_query branch from 0c1d5fb to e9868cb Compare December 1, 2022 23:52
@Alizter Alizter merged commit e11bcae into ocaml:main Dec 2, 2022
@Alizter Alizter deleted the ps/rr/coq__more_resilient_config_query branch December 2, 2022 00:11
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.

1 participant