compilers.yaml: require list of strings for modules (#47197)

This commit is contained in:
Harmen Stoppels 2024-10-24 21:28:38 +02:00 committed by Harmen Stoppels
parent 4127a93a91
commit d88cfbd839
2 changed files with 5 additions and 2 deletions

View File

@ -290,7 +290,7 @@ def __init__(
operating_system,
target,
paths,
modules=None,
modules: Optional[List[str]] = None,
alias=None,
environment=None,
extra_rpaths=None,

View File

@ -52,7 +52,10 @@
"target": {"type": "string"},
"alias": {"anyOf": [{"type": "string"}, {"type": "null"}]},
"modules": {
"anyOf": [{"type": "string"}, {"type": "null"}, {"type": "array"}]
"anyOf": [
{"type": "null"},
{"type": "array", "items": {"type": "string"}},
]
},
"implicit_rpaths": {
"anyOf": [