Fix alire.toml: style_checks selector Max -> Yes

Alire 2.x only accepts no/yes for the style_checks build-switch category;
"Max" failed manifest loading so 'alr build' aborted before compiling.
"Yes" enables GNAT style checks (warnings, non-fatal) -- the valid selector
closest to the intended Max. Local gprbuild bypassed alire.toml which is why
this only surfaced in CI (alr build).
This commit is contained in:
Claude 2026-06-10 04:03:34 +00:00
parent ee640f62d7
commit 80fe7a06a7
No known key found for this signature in database

View File

@ -13,6 +13,6 @@ spark_lemmas = "^1.0.0"
# Build modes wildcard "*". Restrictions are NOT a build-switch: see gnat.adc. # Build modes wildcard "*". Restrictions are NOT a build-switch: see gnat.adc.
[build-switches] [build-switches]
"*".ada_version = "Ada2022" "*".ada_version = "Ada2022"
"*".style_checks = "Max" "*".style_checks = "Yes"
"*".contracts = "Yes" "*".contracts = "Yes"
"*".runtime_checks = "None" "*".runtime_checks = "None"