Skip to content

Commit 84d9a6e

Browse files
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.
1 parent 44ffb61 commit 84d9a6e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/bootstrap/config.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,21 +334,11 @@ impl Config {
334334
}
335335
}
336336
config.hosts = if !flags.host.is_empty() {
337-
for host in flags.host.iter() {
338-
if !config.hosts.contains(host) {
339-
panic!("specified host `{}` is not in configuration", host);
340-
}
341-
}
342337
flags.host
343338
} else {
344339
config.hosts
345340
};
346341
config.targets = if !flags.target.is_empty() {
347-
for target in flags.target.iter() {
348-
if !config.targets.contains(target) {
349-
panic!("specified target `{}` is not in configuration", target);
350-
}
351-
}
352342
flags.target
353343
} else {
354344
config.targets

0 commit comments

Comments
 (0)