forked from AbleOS/holey-bytes
soft-float
This commit is contained in:
parent
37ff58c5e5
commit
6348516f8c
|
@ -4,9 +4,10 @@ version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["alloc"]
|
default = ["alloc", "soft-float"]
|
||||||
alloc = []
|
alloc = []
|
||||||
nightly = []
|
nightly = []
|
||||||
|
soft-float = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
hbbytecode = { path = "../hbbytecode" }
|
hbbytecode = { path = "../hbbytecode" }
|
||||||
|
|
|
@ -3,23 +3,23 @@ macro_rules! arch_specific {
|
||||||
$({$($cfg:tt)*} : $mod:ident;)*
|
$({$($cfg:tt)*} : $mod:ident;)*
|
||||||
} => {
|
} => {
|
||||||
$(
|
$(
|
||||||
#[cfg($($cfg)*)]
|
#[cfg(all(not(feature = "soft-float"), $($cfg)*))]
|
||||||
mod $mod;
|
mod $mod;
|
||||||
|
|
||||||
#[cfg($($cfg)*)]
|
#[cfg(all(not(feature = "soft-float"), $($cfg)*))]
|
||||||
pub use $mod::*;
|
pub use $mod::*;
|
||||||
|
|
||||||
#[cfg($($cfg)*)]
|
#[cfg(all(not(feature = "soft-float"), $($cfg)*))]
|
||||||
pub const FL_ARCH_SPECIFIC_SUPPORTED: bool = true;
|
pub const FL_ARCH_SPECIFIC_SUPPORTED: bool = true;
|
||||||
)*
|
)*
|
||||||
|
|
||||||
#[cfg(not(any($($($cfg)*),*)))]
|
#[cfg(any(feature = "soft-float", not(any($($($cfg)*),*))))]
|
||||||
mod unsupported;
|
mod unsupported;
|
||||||
|
|
||||||
#[cfg(not(any($($($cfg)*),*)))]
|
#[cfg(any(feature = "soft-float", not(any($($($cfg)*),*))))]
|
||||||
pub use unsupported::*;
|
pub use unsupported::*;
|
||||||
|
|
||||||
#[cfg(not(any($($($cfg)*),*)))]
|
#[cfg(any(feature = "soft-float", not(any($($($cfg)*),*))))]
|
||||||
pub const FL_ARCH_SPECIFIC_SUPPORTED: bool = false;
|
pub const FL_ARCH_SPECIFIC_SUPPORTED: bool = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue