Allow matching test by target and env

This commit is contained in:
Mateusz Mikuła 2020-07-03 20:18:51 +02:00
parent 48fe5fcbb8
commit 2a9b51dcc4
1 changed files with 1 additions and 0 deletions

View File

@ -867,6 +867,7 @@ impl Config {
&self.target == name || // triple
util::matches_os(&self.target, name) || // target
util::matches_env(&self.target, name) || // env
self.target.ends_with(name) || // target and env
name == util::get_arch(&self.target) || // architecture
name == util::get_pointer_width(&self.target) || // pointer width
name == self.stage_id.split('-').next().unwrap() || // stage