Remove asmjs from tools
This commit is contained in:
parent
e8a027433b
commit
ca4d6d15ff
5 changed files with 1 additions and 17 deletions
|
|
@ -396,9 +396,6 @@ impl Config {
|
|||
|
||||
pub fn matches_arch(&self, arch: &str) -> bool {
|
||||
self.target_cfg().arch == arch ||
|
||||
// Shorthand for convenience. The arch for
|
||||
// asmjs-unknown-emscripten is actually wasm32.
|
||||
(arch == "asmjs" && self.target.starts_with("asmjs")) ||
|
||||
// Matching all the thumb variants as one can be convenient.
|
||||
// (thumbv6m, thumbv7em, thumbv7m, etc.)
|
||||
(arch == "thumb" && self.target.starts_with("thumb"))
|
||||
|
|
|
|||
|
|
@ -146,19 +146,13 @@ pub(super) fn parse_cfg_name_directive<'a>(
|
|||
}
|
||||
|
||||
// `wasm32-bare` is an alias to refer to just wasm32-unknown-unknown
|
||||
// (in contrast to `wasm32` which also matches non-bare targets like
|
||||
// asmjs-unknown-emscripten).
|
||||
// (in contrast to `wasm32` which also matches non-bare targets)
|
||||
condition! {
|
||||
name: "wasm32-bare",
|
||||
condition: config.target == "wasm32-unknown-unknown",
|
||||
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"),
|
||||
|
|
|
|||
|
|
@ -396,8 +396,6 @@ fn ignore_arch() {
|
|||
("x86_64-unknown-linux-gnu", "x86_64"),
|
||||
("i686-unknown-linux-gnu", "x86"),
|
||||
("nvptx64-nvidia-cuda", "nvptx64"),
|
||||
("asmjs-unknown-emscripten", "wasm32"),
|
||||
("asmjs-unknown-emscripten", "asmjs"),
|
||||
("thumbv7m-none-eabi", "thumb"),
|
||||
];
|
||||
for (target, arch) in archs {
|
||||
|
|
@ -490,9 +488,6 @@ fn wasm_special() {
|
|||
("wasm32-unknown-unknown", "wasm32", true),
|
||||
("wasm32-unknown-unknown", "wasm32-bare", true),
|
||||
("wasm32-unknown-unknown", "wasm64", false),
|
||||
("asmjs-unknown-emscripten", "emscripten", true),
|
||||
("asmjs-unknown-emscripten", "wasm32", true),
|
||||
("asmjs-unknown-emscripten", "wasm32-bare", false),
|
||||
("wasm32-unknown-emscripten", "emscripten", true),
|
||||
("wasm32-unknown-emscripten", "wasm32", true),
|
||||
("wasm32-unknown-emscripten", "wasm32-bare", false),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue