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
Part of #493 Phase 1, follow-up to #500 / #501. Lands the concrete ExternalPreprocessor impl backed by std::process::Command that the auto-resolver will use to probe a real cross-compiler at build time.
Scope
Add ExternalPreprocessor struct in crates/fbuild-build/src/shrink/probe.rs:
Host-cc smoke test (cc / gcc / clang if available) — verifies the subprocess wiring completes without an I/O error and returns a real exit code; does not constrain the libc kind (host could be glibc, musl, newlib-on-cygwin, etc.). Skipped with a clear message if no host C compiler is found.
Notes
#[cfg(unix)] / #[cfg(windows)] should not be needed — Command handles platform differences and we use Stdio::null / Stdio::piped portably.
The host-cc test is best-effort: GitHub Actions runners (ubuntu-latest, macos-latest, windows-latest with MSYS2/MinGW) all ship cc / gcc, so it will exercise the path in CI.
Activity
fix(shrink): route ExternalPreprocessor through fbuild_core subprocess (
fix(shrink): route find_host_cc test through fbuild_core::run_command (…
feat(shrink): ExternalPreprocessor for subprocess-backed libc probe (#…