Skip to main content

compiler_command

Function compiler_command 

Source
pub fn compiler_command(compiler: &Path) -> Command
Expand description

Build a compiler command with optional daemon/cache wrappers.

Behavior controlled by RUN_COMPILER_DAEMON:

  • off: use raw compiler
  • ccache: force ccache wrapper
  • sccache: force sccache wrapper
  • auto (default): prefer sccache, then ccache, else raw compiler