Stub out various functions during testing

This commit is contained in:
Mark Simulacrum
2018-03-09 19:23:35 -07:00
parent e7342b8f42
commit cd33d3a0e4
7 changed files with 45 additions and 12 deletions

View File

@@ -687,7 +687,7 @@ impl<'a> Builder<'a> {
// the options through environment variables that are fetched and understood by both.
//
// FIXME: the guard against msvc shouldn't need to be here
if !target.contains("msvc") {
if !target.contains("msvc") && !cfg!(test) {
let ccache = self.config.ccache.as_ref();
let ccacheify = |s: &Path| {
let ccache = match ccache {