don't run codegen tests when they have been disabled

This commit is contained in:
Jorge Aparicio
2016-08-27 22:14:29 -05:00
parent c70d633e94
commit b8ebc1347c

View File

@@ -390,8 +390,10 @@ impl Build {
"mir-opt", "mir-opt");
}
CheckCodegen { compiler } => {
check::compiletest(self, &compiler, target.target,
"codegen", "codegen");
if self.config.codegen_tests {
check::compiletest(self, &compiler, target.target,
"codegen", "codegen");
}
}
CheckCodegenUnits { compiler } => {
check::compiletest(self, &compiler, target.target,