]> git.lizzy.rs Git - rust.git/commitdiff
bootstrap: configure native toolchain for run-make
authorJonas Schievink <jonasschievink@gmail.com>
Wed, 14 Oct 2020 12:28:57 +0000 (14:28 +0200)
committerJonas Schievink <jonas.schievink@ferrous-systems.com>
Mon, 19 Oct 2020 14:37:04 +0000 (16:37 +0200)
This allows moving a lot of run-make-fulldeps tests to just run-make
tests, and allows running those on target-only platforms

src/bootstrap/test.rs

index 33e85dc5e2a1147c35645b3786a0846a95044df4..6c2c05ac7197e5212b95961939de2b1fa42383c9 100644 (file)
@@ -1202,7 +1202,7 @@ fn run(self, builder: &Builder<'_>) {
 
             // Only pass correct values for these flags for the `run-make` suite as it
             // requires that a C++ compiler was configured which isn't always the case.
-            if !builder.config.dry_run && suite == "run-make-fulldeps" {
+            if !builder.config.dry_run && matches!(suite, "run-make" | "run-make-fulldeps") {
                 cmd.arg("--cc")
                     .arg(builder.cc(target))
                     .arg("--cxx")