Update Polkadot chain-spec and switch to new wasm builder (#60)

This commit is contained in:
Bastian Köcher
2020-02-14 11:44:27 +01:00
committed by GitHub
parent ea65c31654
commit 0c3fb0dde7
3 changed files with 79 additions and 72 deletions
File diff suppressed because one or more lines are too long
+7 -8
View File
@@ -14,14 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
use wasm_builder_runner::{build_current_project_with_rustflags, WasmBuilderSource};
use wasm_builder_runner::WasmBuilder;
fn main() {
build_current_project_with_rustflags(
"wasm_binary.rs",
WasmBuilderSource::Crates("1.0.7"),
// This instructs LLD to export __heap_base as a global variable, which is used by the
// external memory allocator.
"-Clink-arg=--export=__heap_base",
);
WasmBuilder::new()
.with_current_project()
.with_wasm_builder_from_crates("1.0.9")
.export_heap_base()
.import_memory()
.build()
}
+7 -2
View File
@@ -14,8 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
use wasm_builder_runner::{build_current_project, WasmBuilderSource};
use wasm_builder_runner::WasmBuilder;
fn main() {
build_current_project("wasm_binary.rs", WasmBuilderSource::Crates("1.0.7"));
WasmBuilder::new()
.with_current_project()
.with_wasm_builder_from_crates("1.0.9")
.export_heap_base()
.import_memory()
.build()
}