-
Notifications
You must be signed in to change notification settings - Fork 695
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]>
- Loading branch information
Showing
9 changed files
with
101 additions
and
64 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
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
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": 64, | ||
"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
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