mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
12 lines
358 B
Rust
12 lines
358 B
Rust
use wasm_builder_runner::{build_current_project_with_rustflags, WasmBuilderSource};
|
|
|
|
fn main() {
|
|
build_current_project_with_rustflags(
|
|
"wasm_binary.rs",
|
|
WasmBuilderSource::Crates("1.0.9"),
|
|
// This instructs LLD to export __heap_base as a global variable, which is used by the
|
|
// external memory allocator.
|
|
"-Clink-arg=--export=__heap_base",
|
|
);
|
|
}
|