about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-03-09 19:05:06 -0700
committerMark Simulacrum <mark.simulacrum@gmail.com>2018-04-03 11:39:16 -0600
commita5e56b62c5bef0b171785d5b20b3fd4e714db528 (patch)
tree73a517bb87dc21591478143d54bb6ff28b08d365 /src/bootstrap/lib.rs
parent84b5b340216dc1f086d5de2c7d234aa5883cdce8 (diff)
downloadrust-a5e56b62c5bef0b171785d5b20b3fd4e714db528.tar.gz
rust-a5e56b62c5bef0b171785d5b20b3fd4e714db528.zip
Permit constructing Builder without executing
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 8b19bff3f6a..cbe19aeb633 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -394,7 +394,13 @@ impl Build {
         self.verbose("learning about cargo");
         metadata::build(self);
 
-        builder::Builder::run(&self);
+        let builder = builder::Builder::new(&self);
+        if let Some(path) = builder.paths.get(0) {
+            if path == Path::new("nonexistent/path/to/trigger/cargo/metadata") {
+                return;
+            }
+        }
+        builder.execute_cli();
 
         // Check for postponed failures from `test --no-fail-fast`.
         let failures = self.delayed_failures.borrow();