std.Build.findProgram(): Try with and without the Windows executable extensions.

I renamed std.process.Child.CreateProcessSupportedExtension to WindowsExtension
and made it public to avoid duplicating the list of extensions.

While here, I also improved it to not misreport OOM from std.fs.realpathAlloc()
as a generic failure to find the program, but instead panic like the rest of the
build system does for OOM.

Closes #20314.
9be9b8ca90Alex Rønne Petersen committed on 6/21/2024, 7:41:03 PM· committed by Andrew Kelleyparent451550e
2 files changedLine totals unavailable