use crate::{
platform::{Platform, Tier},
target::{Arch, Env, OS},
};
pub const AARCH64_APPLE_IOS: Platform = Platform {
target_triple: "aarch64-apple-ios",
target_arch: Arch::AARCH64,
target_os: OS::iOS,
target_env: None,
tier: Tier::Two,
};
pub const AARCH64_PC_WINDOWS_MSVC: Platform = Platform {
target_triple: "aarch64-pc-windows-msvc",
target_arch: Arch::AARCH64,
target_os: OS::Windows,
target_env: Some(Env::MSVC),
tier: Tier::Two,
};
pub const AARCH64_FUCHSIA: Platform = Platform {
target_triple: "aarch64-fuchsia",
target_arch: Arch::AARCH64,
target_os: OS::Fuchsia,
target_env: None,
tier: Tier::Two,
};
pub const AARCH64_LINUX_ANDROID: Platform = Platform {
target_triple: "aarch64-linux-android",
target_arch: Arch::AARCH64,
target_os: OS::Android,
target_env: None,
tier: Tier::Two,
};
pub const AARCH64_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "aarch64-unknown-linux-gnu",
target_arch: Arch::AARCH64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const AARCH64_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "aarch64-unknown-linux-musl",
target_arch: Arch::AARCH64,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const ARM_LINUX_ANDROIDEABI: Platform = Platform {
target_triple: "arm-linux-androideabi",
target_arch: Arch::ARM,
target_os: OS::Android,
target_env: None,
tier: Tier::Two,
};
pub const ARM_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "arm-unknown-linux-gnueabi",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const ARM_UNKNOWN_LINUX_GNUEABIHF: Platform = Platform {
target_triple: "arm-unknown-linux-gnueabihf",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const ARM_UNKNOWN_LINUX_MUSLEABI: Platform = Platform {
target_triple: "arm-unknown-linux-musleabi",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const ARM_UNKNOWN_LINUX_MUSLEABIHF: Platform = Platform {
target_triple: "arm-unknown-linux-musleabihf",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const ARMV5TE_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "armv5te-unknown-linux-gnueabi",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const ARMV7_APPLE_IOS: Platform = Platform {
target_triple: "armv7-apple-ios",
target_arch: Arch::ARM,
target_os: OS::iOS,
target_env: None,
tier: Tier::Two,
};
pub const ARMV7_LINUX_ANDROIDEABI: Platform = Platform {
target_triple: "armv7-linux-androideabi",
target_arch: Arch::ARM,
target_os: OS::Android,
target_env: None,
tier: Tier::Two,
};
pub const ARMV7_UNKNOWN_LINUX_GNUEABIHF: Platform = Platform {
target_triple: "armv7-unknown-linux-gnueabihf",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const ARMV7_UNKNOWN_LINUX_MUSLEABIHF: Platform = Platform {
target_triple: "armv7-unknown-linux-musleabihf",
target_arch: Arch::ARM,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const ARMV7S_APPLE_IOS: Platform = Platform {
target_triple: "armv7s-apple-ios",
target_arch: Arch::ARM,
target_os: OS::iOS,
target_env: None,
tier: Tier::Two,
};
pub const ASMJS_UNKNOWN_EMSCRIPTEN: Platform = Platform {
target_triple: "asmjs-unknown-emscripten",
target_arch: Arch::ASMJS,
target_os: OS::Emscripten,
target_env: None,
tier: Tier::Two,
};
pub const I386_APPLE_IOS: Platform = Platform {
target_triple: "i386-apple-ios",
target_arch: Arch::X86,
target_os: OS::iOS,
target_env: None,
tier: Tier::Two,
};
pub const I586_PC_WINDOWS_MSVC: Platform = Platform {
target_triple: "i586-pc-windows-msvc",
target_arch: Arch::X86,
target_os: OS::Windows,
target_env: Some(Env::MSVC),
tier: Tier::Two,
};
pub const I586_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "i586-unknown-linux-gnu",
target_arch: Arch::X86,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const I586_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "i586-unknown-linux-musl",
target_arch: Arch::X86,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const I686_LINUX_ANDROID: Platform = Platform {
target_triple: "i686-linux-android",
target_arch: Arch::X86,
target_env: None,
target_os: OS::Android,
tier: Tier::Two,
};
pub const I686_UNKNOWN_FREEBSD: Platform = Platform {
target_triple: "i686-unknown-freebsd",
target_arch: Arch::X86,
target_os: OS::FreeBSD,
target_env: None,
tier: Tier::Two,
};
pub const I686_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "i686-unknown-linux-musl",
target_arch: Arch::X86,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const MIPS_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "mips-unknown-linux-gnu",
target_arch: Arch::MIPS,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const MIPS_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "mips-unknown-linux-musl",
target_arch: Arch::MIPS,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const MIPS64_UNKNOWN_LINUX_GNUABI64: Platform = Platform {
target_triple: "mips64-unknown-linux-gnuabi64",
target_arch: Arch::MIPS64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const MIPS64EL_UNKNOWN_LINUX_GNUABI64: Platform = Platform {
target_triple: "mips64el-unknown-linux-gnuabi64",
target_arch: Arch::MIPS64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const MIPSEL_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "mipsel-unknown-linux-gnu",
target_arch: Arch::MIPS,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const MIPSEL_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "mipsel-unknown-linux-musl",
target_arch: Arch::MIPS,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const POWERPC_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "powerpc-unknown-linux-gnu",
target_arch: Arch::POWERPC,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const POWERPC64_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "powerpc64-unknown-linux-gnu",
target_arch: Arch::POWERPC64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const POWERPC64LE_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "powerpc64le-unknown-linux-gnu",
target_arch: Arch::POWERPC64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const S390X_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "s390x-unknown-linux-gnu",
target_arch: Arch::S390X,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const SPARC64_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "sparc64-unknown-linux-gnu",
target_arch: Arch::SPARC64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const SPARC64_SUN_SOLARIS: Platform = Platform {
target_triple: "sparcv9-sun-solaris",
target_arch: Arch::SPARC64,
target_os: OS::Solaris,
target_env: None,
tier: Tier::Two,
};
pub const WASM_UNKNOWN_UNKNOWN: Platform = Platform {
target_triple: "wasm32-unknown-unknown",
target_arch: Arch::WASM32,
target_os: OS::Unknown,
target_env: None,
tier: Tier::Two,
};
pub const WASM_UNKNOWN_EMSCRIPTEN: Platform = Platform {
target_triple: "wasm32-unknown-emscripten",
target_arch: Arch::WASM32,
target_os: OS::Emscripten,
target_env: None,
tier: Tier::Two,
};
pub const X86_64_APPLE_IOS: Platform = Platform {
target_triple: "x86_64-apple-ios",
target_arch: Arch::X86_64,
target_env: None,
target_os: OS::iOS,
tier: Tier::Two,
};
pub const X86_64_FUCHSIA: Platform = Platform {
target_triple: "x86_64-fuchsia",
target_arch: Arch::X86_64,
target_os: OS::Fuchsia,
target_env: None,
tier: Tier::Two,
};
pub const X86_64_LINUX_ANDROID: Platform = Platform {
target_triple: "x86_64-linux-android",
target_arch: Arch::X86_64,
target_env: None,
target_os: OS::Android,
tier: Tier::Two,
};
pub const X86_64_RUMPRUN_NETBSD: Platform = Platform {
target_triple: "x86_64-rumprun-netbsd",
target_arch: Arch::X86_64,
target_env: None,
target_os: OS::NetBSD,
tier: Tier::Two,
};
pub const X86_64_SUN_SOLARIS: Platform = Platform {
target_triple: "x86_64-sun-solaris",
target_arch: Arch::X86_64,
target_os: OS::Solaris,
target_env: None,
tier: Tier::Two,
};
pub const X86_64_UNKNOWN_CLOUDABI: Platform = Platform {
target_triple: "x86_64-unknown-cloudabi",
target_arch: Arch::X86_64,
target_env: None,
target_os: OS::CloudABI,
tier: Tier::Two,
};
pub const X86_64_UNKNOWN_FREEBSD: Platform = Platform {
target_triple: "x86_64-unknown-freebsd",
target_arch: Arch::X86_64,
target_os: OS::FreeBSD,
target_env: None,
tier: Tier::Two,
};
pub const X86_64_UNKNOWN_LINUX_GNUX32: Platform = Platform {
target_triple: "x86_64-unknown-linux-gnux32",
target_arch: Arch::X86_64,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const X86_64_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "x86_64-unknown-linux-musl",
target_arch: Arch::X86_64,
target_os: OS::Linux,
target_env: Some(Env::Musl),
tier: Tier::Two,
};
pub const X86_64_UNKNOWN_NETBSD: Platform = Platform {
target_triple: "x86_64-unknown-netbsd",
target_arch: Arch::X86_64,
target_env: None,
target_os: OS::NetBSD,
tier: Tier::Two,
};
pub const X86_64_UNKNOWN_REDOX: Platform = Platform {
target_triple: "x86_64-unknown-redox",
target_arch: Arch::X86_64,
target_env: None,
target_os: OS::Redox,
tier: Tier::Two,
};
pub const AARCH64_UNKNOWN_CLOUDABI: Platform = Platform {
target_triple: "aarch64-unknown-cloudabi",
target_arch: Arch::AARCH64,
target_os: OS::CloudABI,
target_env: None,
tier: Tier::Two,
};
pub const ARMV7_UNKNOWN_CLOUDABI_EABIHF: Platform = Platform {
target_triple: "armv7-unknown-cloudabi-eabihf",
target_arch: Arch::ARM,
target_os: OS::CloudABI,
target_env: None,
tier: Tier::Two,
};
pub const I686_UNKNOWN_CLOUDABI: Platform = Platform {
target_triple: "i686-unknown-cloudabi",
target_arch: Arch::X86,
target_os: OS::CloudABI,
target_env: None,
tier: Tier::Two,
};
pub const POWERPC_UNKNOWN_LINUX_GNUSPE: Platform = Platform {
target_triple: "powerpc-unknown-linux-gnuspe",
target_arch: Arch::POWERPC,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};
pub const SPARC_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "sparc-unknown-linux-gnu",
target_arch: Arch::SPARC,
target_os: OS::Linux,
target_env: Some(Env::GNU),
tier: Tier::Two,
};