Run the sprint patch set only while a sprint button is chosen, and never switch it on over a start that kept it off.

This commit is contained in:
kendo
2026-11-12 20:56:54 +00:00
committed by chrg6
parent 6faf4bd7f5
commit 0a4fe144c9
6 changed files with 47 additions and 13 deletions

View File

@@ -46,7 +46,8 @@ def main():
subprocess.check_call([compiler(), '-O1', '-Wall', '-Wno-unused-function', '-fno-strict-aliasing',
'-I', str(work), '-I', str(ROOT / 'runtime'),
str(ROOT / 'tests' / 'sprint_check.c'), '-o', str(exe)], env=env)
return subprocess.run([str(exe)], env=env).returncode
rc = subprocess.run([str(exe)], env=env).returncode
return subprocess.run([str(exe), 'kept-off'], env=env).returncode or rc
if __name__ == '__main__':