Skip to main content

parse_invocation

Function parse_invocation 

Source
pub fn parse_invocation(compiler: &str, args: &[String]) -> ParsedInvocation
Expand description

Parse a compiler invocation’s arguments to determine cacheability.

Returns a ParsedInvocation indicating whether the invocation is cacheable, and if so, extracts the relevant information.

Arg parsing is read-only analysis — it never modifies what goes to the compiler. The compiler always receives the exact original args.