Skip to content

Commit

Permalink
Allow specifiying targets and hosts not in the config file.
Browse files Browse the repository at this point in the history
We no longer care about the source of this information, so there is no
reason to restrict users.
  • Loading branch information
Mark-Simulacrum committed Aug 13, 2017
1 parent 44ffb61 commit 84d9a6e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/bootstrap/config.rs
Expand Up @@ -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
Expand Down

0 comments on commit 84d9a6e

Please sign in to comment.