about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-29 22:26:28 -0600
committerMark Simulacrum <mark.simulacrum@gmail.com>2017-08-13 05:15:43 +0500
commit84d9a6ee8cb40ea3dc390b8f4e2862289cb14f7e (patch)
tree36448a46ee791ac90f9539a73bb284847ac4e23d /src/bootstrap
parent44ffb61623741f86fca9f2f51d49dc1778310ee1 (diff)
downloadrust-84d9a6ee8cb40ea3dc390b8f4e2862289cb14f7e.tar.gz
rust-84d9a6ee8cb40ea3dc390b8f4e2862289cb14f7e.zip
Allow specifiying targets and hosts not in the config file.
We no longer care about the source of this information, so there is no
reason to restrict users.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/config.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
index c0494bd7fd0..e1c60b5d191 100644
--- a/src/bootstrap/config.rs
+++ b/src/bootstrap/config.rs
@@ -334,21 +334,11 @@ impl Config {
             }
         }
         config.hosts = if !flags.host.is_empty() {
-            for host in flags.host.iter() {
-                if !config.hosts.contains(host) {
-                    panic!("specified host `{}` is not in configuration", host);
-                }
-            }
             flags.host
         } else {
             config.hosts
         };
         config.targets = if !flags.target.is_empty() {
-            for target in flags.target.iter() {
-                if !config.targets.contains(target) {
-                    panic!("specified target `{}` is not in configuration", target);
-                }
-            }
             flags.target
         } else {
             config.targets