Throw error if architecture is not supported
This commit is contained in:
parent
789082f176
commit
32ad71301c
@ -51,3 +51,11 @@ mod aarch64 {
|
||||
}
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
pub use aarch64::*;
|
||||
|
||||
#[cfg(not(any(
|
||||
target_arch = "x86_64",
|
||||
target_arch = "riscv64",
|
||||
target_arch = "riscv32",
|
||||
target_arch = "aarch64"
|
||||
)))]
|
||||
compile_error!("Current architecture is not supported");
|
||||
|
@ -12,3 +12,10 @@ pub use riscv64::*;
|
||||
mod aarch64;
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
pub use aarch64::*;
|
||||
|
||||
#[cfg(not(any(
|
||||
target_arch = "x86_64",
|
||||
target_arch = "riscv64",
|
||||
target_arch = "aarch64"
|
||||
)))]
|
||||
compile_error!("Current architecture is not supported");
|
||||
|
Loading…
Reference in New Issue
Block a user