-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-builder: Use riscv32emac-unknown-none-polkavm.json target #6419
Merged
jarkkojs
merged 41 commits into
paritytech:master
from
jarkkojs:wasm-builder-riscv32emac
Dec 4, 2024
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
d65bc32
wasm-builder: Use the custom target riscv32emac-unknown-none-polkavm
jarkkojs 20c0928
Merge branch 'master' into wasm-builder-riscv32emac
athei bf56307
Update substrate/utils/wasm-builder/src/lib.rs
jarkkojs d47fe33
wasm-builder: fixup names in RustTarget
jarkkojs 33075a4
wasm-build: RuntimeTarget fixups
jarkkojs 15c9cce
wasm-builder: remove extra riscv rustc parameters
jarkkojs a2d7364
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs f4ae692
Bump polkavm version
jarkkojs 71e3b92
Update Cargo.lock
jarkkojs e7334e1
Fix: Use std::io::Read trait to serialize the program
jarkkojs 8fcdcbb
Remove std::io::Read import
jarkkojs fc9b2a2
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 57076cc
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 58f624e
Bump polkavm version
jarkkojs b762ac0
Update Cargo.toml
jarkkojs 1816669
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 8104f30
wasm-builder: Use polkavm_linker::target_json_32_path()
jarkkojs 68024f7
Update substrate/utils/wasm-builder/src/lib.rs
jarkkojs 9452b55
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 4dd8d28
wasm-builder: Introduce fn `rustc_target_build_std()`
jarkkojs 2b23009
wasm-builder: Fixup fn `rustc_target_build_std()`
jarkkojs f70c8dd
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 75a1650
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 3153d5a
wasm-builder: Remove spurious target json
jarkkojs 0df733c
wasm-builder: Fix error handling in RuntimeTarget::new()
jarkkojs ba2da57
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 5ca710d
wasm-builder: fixup assert
jarkkojs 8a4524e
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 5359e3e
Merge remote-tracking branch 'upstream/master' into wasm-builder-risc…
jarkkojs 588458a
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 5bf5bf4
Update substrate/utils/wasm-builder/src/prerequisites.rs
jarkkojs 334b78d
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs a23fa4e
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 455de15
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs c657d3c
Fix Cargo.lock
jarkkojs 4058b0e
Bump polkavm-linker version
jarkkojs 591e288
Bump polkavm-linker version
jarkkojs 8d23a9a
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs beca7d7
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 2848a3d
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs 2bcd113
Merge branch 'master' into wasm-builder-riscv32emac
jarkkojs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
athei marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkchr @jarkkojs What is the point of doing
-Zbuild-std
for targetriscv32emac-unknown-none-polkavm
? It increases runtime build time for non-wasm targets.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is required for both targets but for different reasons:
wasm: The rustup provided standard library is compiled with wasm extensions enabled we dont support. Hence we need to recompile it.
riscv: Rustup doesn't contain any prebuilt binaries for this target. Hence we need to build it ourselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, so I guessed, i.e. it should be official target in rustc upstream to have prebuilt binaries, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[not actually at work yet, my keyboard just writes by itself]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@athei Thanks for the clarification! I think Parity could add to the pre-compiled libraries to
riscv32emac-unknown-none-polkavm
target inrlib
format like thewasm32-unknown-unknown
target does (located in./lib/rustlib/wasm32-unknown-unknown/lib/libcore-192e883b194683b6.rlib
).