mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 22:01:04 +00:00
Update Polkadot chain-spec and switch to new wasm builder (#60)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -14,14 +14,13 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
// 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() {
|
fn main() {
|
||||||
build_current_project_with_rustflags(
|
WasmBuilder::new()
|
||||||
"wasm_binary.rs",
|
.with_current_project()
|
||||||
WasmBuilderSource::Crates("1.0.7"),
|
.with_wasm_builder_from_crates("1.0.9")
|
||||||
// This instructs LLD to export __heap_base as a global variable, which is used by the
|
.export_heap_base()
|
||||||
// external memory allocator.
|
.import_memory()
|
||||||
"-Clink-arg=--export=__heap_base",
|
.build()
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,13 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
// 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() {
|
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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user