mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Emit wasm sections only when compiling to wasm (#8845)
This commit is contained in:
@@ -238,6 +238,7 @@ fn generate_emit_link_section_decl(contents: &[u8], section_name: &str) -> Token
|
||||
let len = contents.len();
|
||||
quote! {
|
||||
const _: () = {
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[link_section = #section_name]
|
||||
static SECTION_CONTENTS: [u8; #len] = [#(#contents),*];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user