tools/run_tests.py calls resolve_wavec() at module scope before parsing arguments. In a checkout without a built compiler, python tools/run_tests.py --help exits with a build-first error instead of showing usage. It also creates a temporary output directory before argparse handles help, leaving an unnecessary directory on this path.
Source evidence at the head of #520:
Acceptance:
Related: #499 covers finding MSVC compiler binaries; this issue concerns CLI startup order.
Audit status: identified by static source inspection; the scenarios above have not been executed during this audit. The permalink fixes the reviewed revision; this report does not claim the defect was introduced by #520.
tools/run_tests.pycallsresolve_wavec()at module scope before parsing arguments. In a checkout without a built compiler,python tools/run_tests.py --helpexits with a build-first error instead of showing usage. It also creates a temporary output directory before argparse handles help, leaving an unnecessary directory on this path.Source evidence at the head of #520:
WAVEC = resolve_wavec()TEST_OUTPUT_DIR = Path(tempfile.mkdtempARGS = parse_args()Acceptance:
Related: #499 covers finding MSVC compiler binaries; this issue concerns CLI startup order.
Audit status: identified by static source inspection; the scenarios above have not been executed during this audit. The permalink fixes the reviewed revision; this report does not claim the defect was introduced by #520.