mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
migrate existing behavior of matches_arch
This commit is contained in:
parent
e085192729
commit
4cdb783cb9
@ -1,7 +1,7 @@
|
||||
use crate::common::{CompareMode, Config, Debugger};
|
||||
use std::collections::HashSet;
|
||||
|
||||
const EXTRA_ARCHS: &[&str] = &["asmjs", "spirv"];
|
||||
const EXTRA_ARCHS: &[&str] = &["spirv"];
|
||||
|
||||
/// Parses a name-value directive which contains config-specific information, e.g., `ignore-x86`
|
||||
/// or `normalize-stderr-32bit`.
|
||||
@ -133,6 +133,17 @@ pub(super) fn parse_cfg_name_directive<'a>(
|
||||
message: "when the target is WASM"
|
||||
}
|
||||
|
||||
condition! {
|
||||
name: "asmjs",
|
||||
condition: config.target.starts_with("asmjs"),
|
||||
message: "when the architecture is asm.js",
|
||||
}
|
||||
condition! {
|
||||
name: "thumb",
|
||||
condition: config.target.starts_with("thumb"),
|
||||
message: "when the architecture is part of the Thumb family"
|
||||
}
|
||||
|
||||
condition! {
|
||||
name: &config.channel,
|
||||
allowed_names: &["stable", "beta", "nightly"],
|
||||
|
Loading…
Reference in New Issue
Block a user