Skip to content

Commit

Permalink
try pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Feb 3, 2024
1 parent 3b9294a commit 1e31e5e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions monoio-macros/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,17 @@ fn parse_knobs(mut input: syn::ItemFn, is_test: bool, config: FinalConfig) -> To
} else {
quote! {}
};
let cfg_attr = if config.driver == DriverType::Uring && is_test {
quote! {
#[cfg(all(target_os = "linux", feature = "iouring"))]
let cfg_attr = if is_test {
match config.driver {
DriverType::Legacy => quote! {
#[cfg(all(target_os = "linux", feature = "legacy"))]
},
DriverType::Uring => quote! {
#[cfg(all(target_os = "linux", feature = "iouring"))]
},
DriverType::Fusion => quote! {
#[cfg(target_os = "linux")]
},
}
} else {
quote! {}
Expand Down

0 comments on commit 1e31e5e

Please sign in to comment.