scripts: Fixed case-level flags in bench.py

A typo meant we were setting all case-level flags to suite-level flags
in bench.py. And because suite-level flags are more-or-less just ored
case-level flags, all case-level flags would end up shared.

Fixed via untypo.
This commit is contained in:
Christopher Haster
2024-11-07 00:16:15 -06:00
parent 007ac97bec
commit b08c66e387

View File

@@ -512,7 +512,7 @@ def compile(bench_paths, **args):
f.writeln(12*' '+'.path = "%s",' % case.path)
f.writeln(12*' '+'.flags = %s,' % (
' | '.join(filter(None, [
'BENCH_INTERNAL' if suite.internal
'BENCH_INTERNAL' if case.internal
else None]))
or 0))
for ifdef in it.chain(suite.ifdef, case.ifdef):