Skip to content

Commit 38d25e1

Browse files
committed
Add "override" to compiler parser options
This is required to emulate the behavior of more complex flags, where: - There is a default value; - The default value must be overridden if the flag is provided; and - The flag can be supplied more than once, and extends a list. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 7265365 commit 38d25e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

codebasin/schema/cbiconfig.schema

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
}
6161
}
6262
]
63+
},
64+
"override": {
65+
"type": "boolean"
6366
}
6467
},
6568
"additionalProperties": false

tests/schema/test_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def test_cbiconfig_compilers(self):
121121
dest = "passes"
122122
pattern = "*"
123123
format = "$value"
124+
override = true
124125
""",
125126
)
126127

0 commit comments

Comments
 (0)