You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 62bc752
Browse filesBrowse the repository at this point in the historyBrowse files
fix(platform,xlings): a program probe is an argument vector, not a /bin/sh string
The vendored-xlings version probe ran `<xlings> --version 2>/dev/null` as a
command string. On Windows every command string reaches cmd.exe, which cannot
open /dev/null: it printed "The system cannot find the path specified." in
every command after the first, did not run xlings, and returned an empty
version, so a Windows home never replaced a vendored xlings older than the pin.
mcpp.platform.process gains capture_stdout: the program runs directly, its
standard output is captured, its standard error is discarded and its standard
input is empty; on Windows the redirect names cmd.exe's own null device. The
xlings probe and the four other program probes that carried POSIX grammar on
a path Windows reaches use it: the clean link specs, the libstdc++ fallback
probe, the freestanding size report and the publish digest.
Tests: capture_stdout unit tests (stdout only, exit code, empty stdin,
environment, empty output for a missing program, the Windows command line);
a version-probe unit test that runs a .bat through the real launcher on
Windows; e2e 687 (no path error on the second command; an older vendored
binary is replaced).
0 commit comments