Skip to content

Commit

Permalink
wasm-builder: Use polkavm_linker::target_json_32_path()
Browse files Browse the repository at this point in the history
Signed-off-by: Jarkko Sakkinen <[email protected]>
  • Loading branch information
jarkkojs committed Nov 21, 2024
1 parent 1816669 commit 8104f30
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,8 @@ polkadot-test-client = { path = "polkadot/node/test/client" }
polkadot-test-runtime = { path = "polkadot/runtime/test-runtime" }
polkadot-test-service = { path = "polkadot/node/test/service" }
polkavm = { version = "0.9.3", default-features = false }
polkavm-derive = "0.16.0"
polkavm-linker = "0.16.1"
polkavm-derive = "0.17.0"
polkavm-linker = "0.17.0"
portpicker = { version = "0.1.1" }
pretty_assertions = { version = "1.3.0" }
primitive-types = { version = "0.13.1", default-features = false, features = [
Expand Down
9 changes: 4 additions & 5 deletions substrate/utils/wasm-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,10 @@ impl RuntimeTarget {
fn rustc_target(self) -> String {
match self {
RuntimeTarget::Wasm => "wasm32-unknown-unknown".to_string(),
RuntimeTarget::Riscv => Path::new(env!("CARGO_MANIFEST_DIR"))
.join("riscv32emac-unknown-none-polkavm.json")
.into_os_string()
.into_string()
.unwrap(),
RuntimeTarget::Riscv => {
let path = polkavm_linker::target_json_32_path().expect("riscv not found");
path.into_os_string().into_string().unwrap()
},
}
}

Expand Down

0 comments on commit 8104f30

Please sign in to comment.