Skip to content

Commit

Permalink
Add "modes" to compiler pass schema
Browse files Browse the repository at this point in the history
It is common for a compiler pass to imply one or more modes.

For example, enabling any SYCL device pass implies SYCL mode.

Signed-off-by: John Pennycook <[email protected]>
  • Loading branch information
Pennycook committed Jan 31, 2025
1 parent 38d25e1 commit cd2f953
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codebasin/schema/cbiconfig.schema
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
"items": {
"type": "string"
}
},
"modes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["name"],
Expand Down
1 change: 1 addition & 0 deletions tests/schema/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def test_cbiconfig_compilers(self):
defines = ["DEVICE"]
include_paths = ["/device/"]
include_files = ["device.inc"]
modes = ["device-mode"]
""",
)

Expand Down

0 comments on commit cd2f953

Please sign in to comment.