mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Emit wasm sections only when compiling to wasm (#8845)
This commit is contained in:
@@ -675,6 +675,7 @@ fn generate_runtime_api_versions(impls: &[ItemImpl]) -> Result<TokenStream> {
|
||||
#( #attrs )*
|
||||
const _: () = {
|
||||
// All sections with the same name are going to be merged by concatenation.
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[link_section = "runtime_apis"]
|
||||
static SECTION_CONTENTS: [u8; 12] = #c::serialize_runtime_api_info(#id, #version);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user