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, operating_system,
target, target,
paths, paths,
modules=None, modules: Optional[List[str]] = None,
alias=None, alias=None,
environment=None, environment=None,
extra_rpaths=None, extra_rpaths=None,

View File

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