diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-03-10 15:29:09 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-04-03 09:30:32 +0200 |
| commit | 4cdb783cb9813ab3f627303e6d763a49ee730e33 (patch) | |
| tree | c95066f0123f77b2a666700afcc143cda01cab5a | |
| parent | e085192729c3f276e52eeb7a7e7cfaa39cc5c09c (diff) | |
| download | rust-4cdb783cb9813ab3f627303e6d763a49ee730e33.tar.gz rust-4cdb783cb9813ab3f627303e6d763a49ee730e33.zip | |
migrate existing behavior of matches_arch
| -rw-r--r-- | src/tools/compiletest/src/header/cfg.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/header/cfg.rs b/src/tools/compiletest/src/header/cfg.rs index dbc78dd521b..747cf10bd34 100644 --- a/src/tools/compiletest/src/header/cfg.rs +++ b/src/tools/compiletest/src/header/cfg.rs @@ -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`. @@ -134,6 +134,17 @@ pub(super) fn parse_cfg_name_directive<'a>( } 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"], message: "when the release channel is {name}", |
