-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm-builder: Use the custom target riscv32emac-unknown-none-polkavm
Signed-off-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
- Loading branch information
Showing
10 changed files
with
91 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Use the custom target riscv32emac-unknown-none-polkavm | ||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
Closes: https://github.com/paritytech/polkadot-sdk/issues/6335 | ||
|
||
crates: | ||
- name: substrate-wasm-builder | ||
bump: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use std::process::Command; | ||
|
||
fn main() { | ||
Command::new("rustup") | ||
.args(["override", "set", "nightly-2024-11-01"]).output().expect("rustup"); | ||
|
||
println!("cargo::rerun-if-changed=build.rs"); | ||
} |
26 changes: 26 additions & 0 deletions
26
substrate/utils/wasm-builder/riscv32emac-unknown-none-polkavm.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"arch": "riscv32", | ||
"cpu": "generic-rv32", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:32:32-i64:64-n32-S32", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"features": "+e,+m,+a,+c,+lui-addi-fusion,+xtheadcondmov", | ||
"linker": "rust-lld", | ||
"linker-flavor": "ld.lld", | ||
"llvm-abiname": "ilp32e", | ||
"llvm-target": "riscv32", | ||
"max-atomic-width": 32, | ||
"panic-strategy": "abort", | ||
"relocation-model": "pie", | ||
"target-pointer-width": "32", | ||
"singlethread": true, | ||
"pre-link-args": { | ||
"ld": [ | ||
"--emit-relocs", | ||
"--unique", | ||
"--relocatable" | ||
] | ||
}, | ||
"env": "polkavm" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly-2024-11-01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters