mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
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.
This commit is contained in:
@@ -334,21 +334,11 @@ pub fn parse(args: &[String]) -> 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
|
||||
|
||||
Reference in New Issue
Block a user