2022-11-07 14:21:16 -06:00
|
|
|
//! Architecture specific code
|
|
|
|
|
|
|
|
macro_rules! arch_cond {
|
|
|
|
($($arch:ident: $str:literal),* $(,)?) => {$(
|
|
|
|
#[cfg(target_arch = $str)]
|
|
|
|
pub mod $arch;
|
|
|
|
#[cfg(target_arch = $str)]
|
2023-03-30 16:43:04 -05:00
|
|
|
pub use self::$arch::*;
|
2022-11-07 14:21:16 -06:00
|
|
|
)*};
|
|
|
|
}
|
|
|
|
|
|
|
|
arch_cond!(
|
|
|
|
aarch64: "aarch64",
|
|
|
|
riscv64: "riscv64",
|
|
|
|
x86_64: "x86_64",
|
|
|
|
);
|