Skip to content

Commit

Permalink
Allow use of cfg_attr attributes with polkavm_derive macros (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
athei authored Sep 15, 2023
1 parent d124a5a commit 72cbf89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polkavm-derive-impl/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn is_doc(attr: &syn::Attribute) -> bool {

pub fn is_cfg(attr: &syn::Attribute) -> bool {
if let syn::Meta::List(syn::MetaList { ref path, .. }) = attr.meta {
is_path_eq(path, "cfg") || is_path_eq(path, "allow") || is_path_eq(path, "deny")
is_path_eq(path, "cfg") || is_path_eq(path, "cfg_attr") || is_path_eq(path, "allow") || is_path_eq(path, "deny")
} else {
false
}
Expand Down

0 comments on commit 72cbf89

Please sign in to comment.