Function find

fn find(arch_or_target: &str, tool: &str) -> Option<std::process::Command>

Attempts to find a tool within an MSVC installation using the Windows registry as a point to search from.

The arch_or_target argument is the architecture or the Rust target name that the tool should work for (e.g. compile or link for). The supported architecture names are:

The tool argument is the tool to find. Supported tools include:

This function will return None if the tool could not be found, or it will return Some(cmd) which represents a command that's ready to execute the tool with the appropriate environment variables set.

Note that this function always returns None for non-MSVC targets (if a full target name was specified).