mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Remove asmjs from tools
This commit is contained in:
@@ -516,7 +516,6 @@ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
(sym::target_arch, Some(arch)) => match arch.as_str() {
|
||||
"aarch64" => "AArch64",
|
||||
"arm" => "ARM",
|
||||
"asmjs" => "JavaScript",
|
||||
"loongarch64" => "LoongArch LA64",
|
||||
"m68k" => "M68k",
|
||||
"csky" => "CSKY",
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
"armv7r-none-eabi",
|
||||
"armv7r-none-eabihf",
|
||||
"armv7s-apple-ios",
|
||||
"asmjs-unknown-emscripten",
|
||||
"bpfeb-unknown-none",
|
||||
"bpfel-unknown-none",
|
||||
"i386-apple-ios",
|
||||
|
||||
@@ -396,9 +396,6 @@ pub fn target_cfg(&self) -> &TargetCfg {
|
||||
|
||||
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 @@ macro_rules! condition {
|
||||
}
|
||||
|
||||
// `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),
|
||||
|
||||
Reference in New Issue
Block a user