Compare commits

...

1 commit

Author SHA1 Message Date
Erin 6348516f8c soft-float 2024-05-09 11:58:04 +02:00
2 changed files with 10 additions and 9 deletions

View file

@ -4,9 +4,10 @@ version = "0.1.0"
edition = "2021"
[features]
default = ["alloc"]
alloc = []
nightly = []
default = ["alloc", "soft-float"]
alloc = []
nightly = []
soft-float = []
[dependencies]
hbbytecode = { path = "../hbbytecode" }

View file

@ -3,23 +3,23 @@ macro_rules! arch_specific {
$({$($cfg:tt)*} : $mod:ident;)*
} => {
$(
#[cfg($($cfg)*)]
#[cfg(all(not(feature = "soft-float"), $($cfg)*))]
mod $mod;
#[cfg($($cfg)*)]
#[cfg(all(not(feature = "soft-float"), $($cfg)*))]
pub use $mod::*;
#[cfg($($cfg)*)]
#[cfg(all(not(feature = "soft-float"), $($cfg)*))]
pub const FL_ARCH_SPECIFIC_SUPPORTED: bool = true;
)*
#[cfg(not(any($($($cfg)*),*)))]
#[cfg(any(feature = "soft-float", not(any($($($cfg)*),*))))]
mod unsupported;
#[cfg(not(any($($($cfg)*),*)))]
#[cfg(any(feature = "soft-float", not(any($($($cfg)*),*))))]
pub use unsupported::*;
#[cfg(not(any($($($cfg)*),*)))]
#[cfg(any(feature = "soft-float", not(any($($($cfg)*),*))))]
pub const FL_ARCH_SPECIFIC_SUPPORTED: bool = false;
};
}