From 380034677daeac6a948e5d5650d1c282d39f74b6 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Fri, 24 Aug 2018 13:44:55 +0300 Subject: [PATCH 1/2] Don't use --export-table anymore Because it was turned on by default in the recent nightlies. See https://github.com/rust-lang/rust/pull/53237 --- substrate/executor/wasm/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/executor/wasm/build.sh b/substrate/executor/wasm/build.sh index 66064f6f065f8..ab71864481782 100755 --- a/substrate/executor/wasm/build.sh +++ b/substrate/executor/wasm/build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -RUSTFLAGS="-C link-arg=--export-table" cargo +nightly build --target=wasm32-unknown-unknown --release +cargo +nightly build --target=wasm32-unknown-unknown --release for i in test do wasm-gc target/wasm32-unknown-unknown/release/runtime_$i.wasm target/wasm32-unknown-unknown/release/runtime_$i.compact.wasm From a678f852fe3667fd3bb40fc405ee24ac63ddda70 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Fri, 24 Aug 2018 13:46:01 +0300 Subject: [PATCH 2/2] use_extern_macros stabilization With recent nightlies rustc produces a warning ``` the feature `use_extern_macros` has been stable since 1.30.0 and no longer requires an attribute to enable ``` --- substrate/runtime-std/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/substrate/runtime-std/src/lib.rs b/substrate/runtime-std/src/lib.rs index 64267b23d0547..b3d7c4530ce43 100644 --- a/substrate/runtime-std/src/lib.rs +++ b/substrate/runtime-std/src/lib.rs @@ -21,7 +21,6 @@ #![cfg_attr(not(feature = "std"), feature(panic_implementation))] #![cfg_attr(not(feature = "std"), feature(core_intrinsics))] #![cfg_attr(not(feature = "std"), feature(alloc))] -#![cfg_attr(not(feature = "std"), feature(use_extern_macros))] #![cfg_attr(feature = "std", doc = "Polkadot runtime standard library as compiled when linked with Rust's standard library.")] #![cfg_attr(not(feature = "std"), doc = "Polkadot's runtime standard library as compiled without Rust's standard library.")]