-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Generalize wasm-builder for arbitrary targets #13982
Comments
Yes in general we could do this, but I'm not sure that the |
Agreed, had the same thought after submitting the issue. |
We have problems building some primitives (sp-core dependant) for sgx target because of strict check for 32 bit words for non-std builds (where's our target is x64). Will this problem be part of this refactoring or should I raise separate issue for it? @bkchr |
As of now my use case is no longer relevant:
This will now be part of the build guide for validators and not automated. So maybe this issue can be closed. |
You want this: #13982 (comment) |
Wrong URL? :) |
Ohh 😅 #5547 now :D |
ISSUE
Overview
For paritytech/polkadot-sdk#650 we want to build one of the crates in
polkadot
as a separate musl binary, as part of thepolkadot
build process, and then include the binary inpolkadot
itself.The functionality would essentially be identical to wasm-builder but with a different target. Looking through the code, most of it doesn't seem specific to wasm, apart from "wasm" being used in many of the names. Nevertheless, we should be able to adapt it for arbitrary targets.
Alternatives considered
x86_64-unknown-linux-musl
, but we may want to support a different arch in the future.cargo build
.The text was updated successfully, but these errors were encountered: