summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-08-27 22:14:29 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-08-27 22:14:29 -0500
commitb8ebc1347c0f69c833b4fa908bcc43eb47949efa (patch)
tree419c16dca7bdd11f5f3c78e29004b04a86dfede1 /src/bootstrap/lib.rs
parentc70d633e94dd52d036ef5808ab7dc49a72506492 (diff)
downloadrust-b8ebc1347c0f69c833b4fa908bcc43eb47949efa.tar.gz
rust-b8ebc1347c0f69c833b4fa908bcc43eb47949efa.zip
don't run codegen tests when they have been disabled
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 9eacb5e3924..9f0efa8289d 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -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,