1// Copyright 2019-2020 Parity Technologies (UK) Ltd.2// This file is part of Substrate.34// Substrate is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Substrate is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Substrate. If not, see <http://www.gnu.org/licenses/>.1617use wasm_builder_runner::{build_current_project_with_rustflags, WasmBuilderSource};1819fn main() {20 build_current_project_with_rustflags(21 "wasm_binary.rs",22 WasmBuilderSource::Crates("1.0.8"),23 // This instructs LLD to export __heap_base as a global variable, which is used by the24 // external memory allocator.25 "-Clink-arg=--export=__heap_base",26 );27}difftreelog
source
runtime/build.rs1.1 KiBsourcehistory