aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-02-28 11:37:54 +0800
committer简律纯 <i@jyunko.cn>2024-02-28 11:37:54 +0800
commit672e0d03d3ffdba740d166f2c4a7243f142cec5f (patch)
tree46cdb4ea015877e7828710a47c945aa2e834beb0 /target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs
parentfc6fc64ca3ff7df62dd270fc021f674e56b2dedf (diff)
downloadTRPGNivis-672e0d03d3ffdba740d166f2c4a7243f142cec5f.tar.gz
TRPGNivis-672e0d03d3ffdba740d166f2c4a7243f142cec5f.zip
refactor!: built in rust
Diffstat (limited to 'target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs')
-rw-r--r--target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs74
1 files changed, 74 insertions, 0 deletions
diff --git a/target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs b/target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs
new file mode 100644
index 0000000..b511c2e
--- /dev/null
+++ b/target/release/build/target-lexicon-7df90ef8ecaecfaa/out/host.rs
@@ -0,0 +1,74 @@
+
+#[allow(unused_imports)]
+use crate::Aarch64Architecture::*;
+#[allow(unused_imports)]
+use crate::ArmArchitecture::*;
+#[allow(unused_imports)]
+use crate::CustomVendor;
+#[allow(unused_imports)]
+use crate::Mips32Architecture::*;
+#[allow(unused_imports)]
+use crate::Mips64Architecture::*;
+#[allow(unused_imports)]
+use crate::Riscv32Architecture::*;
+#[allow(unused_imports)]
+use crate::Riscv64Architecture::*;
+#[allow(unused_imports)]
+use crate::X86_32Architecture::*;
+
+/// The `Triple` of the current host.
+pub const HOST: Triple = Triple {
+ architecture: Architecture::X86_64,
+ vendor: Vendor::Pc,
+ operating_system: OperatingSystem::Windows,
+ environment: Environment::Msvc,
+ binary_format: BinaryFormat::Coff,
+};
+
+impl Architecture {
+ /// Return the architecture for the current host.
+ pub const fn host() -> Self {
+ Architecture::X86_64
+ }
+}
+
+impl Vendor {
+ /// Return the vendor for the current host.
+ pub const fn host() -> Self {
+ Vendor::Pc
+ }
+}
+
+impl OperatingSystem {
+ /// Return the operating system for the current host.
+ pub const fn host() -> Self {
+ OperatingSystem::Windows
+ }
+}
+
+impl Environment {
+ /// Return the environment for the current host.
+ pub const fn host() -> Self {
+ Environment::Msvc
+ }
+}
+
+impl BinaryFormat {
+ /// Return the binary format for the current host.
+ pub const fn host() -> Self {
+ BinaryFormat::Coff
+ }
+}
+
+impl Triple {
+ /// Return the triple for the current host.
+ pub const fn host() -> Self {
+ Self {
+ architecture: Architecture::X86_64,
+ vendor: Vendor::Pc,
+ operating_system: OperatingSystem::Windows,
+ environment: Environment::Msvc,
+ binary_format: BinaryFormat::Coff,
+ }
+ }
+}