Skip to main content

resolve_host_linker

Function resolve_host_linker 

Source
pub fn resolve_host_linker() -> PathBuf
Expand description

Resolve the system linker driver we want to forward to from the shim. Same logic the integration test uses, lifted into one place so production and tests agree:

  • CC env var wins.
  • macOS: xcrun -f clang (active toolchain).
  • Otherwise: PATH-resolved cc.

Returns the resolved path. Caller should .canonicalize() if they want absolute, but the shim only needs an executable name the OS can find.