Skip to content

Commit b8ebc13

Browse files
author
Jorge Aparicio
committed
don't run codegen tests when they have been disabled
1 parent c70d633 commit b8ebc13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bootstrap/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ impl Build {
390390
"mir-opt", "mir-opt");
391391
}
392392
CheckCodegen { compiler } => {
393-
check::compiletest(self, &compiler, target.target,
394-
"codegen", "codegen");
393+
if self.config.codegen_tests {
394+
check::compiletest(self, &compiler, target.target,
395+
"codegen", "codegen");
396+
}
395397
}
396398
CheckCodegenUnits { compiler } => {
397399
check::compiletest(self, &compiler, target.target,

0 commit comments

Comments
 (0)