Skip to content

Commit e4b75a6

Browse files
committed
wasm-actor
1 parent 20c27da commit e4b75a6

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ fvm_ipld_encoding = { git = "https://github.com/consensus-shipyard/ref-fvm.git"
251251
fvm_ipld_hamt = { git = "https://github.com/consensus-shipyard/ref-fvm.git" }
252252
fvm_ipld_amt = { git = "https://github.com/consensus-shipyard/ref-fvm.git" }
253253

254-
[profile.wasm]
254+
[profile.wasm-actor]
255255
inherits = "release"
256256
panic = "abort"
257257
overflow-checks = false

fendermint/actors-custom-car/build.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ fn build_all_wasm_blobs(
223223

224224
let rustup = which::which("rustup")?;
225225

226+
let profile = "wasm-actor";
226227
// Cargo build command for all test_actors at once.
227228
let mut cmd = Command::new(rustup);
228229
cmd.arg("run")
@@ -233,7 +234,8 @@ fn build_all_wasm_blobs(
233234
.args(package_args)
234235
.arg("--target")
235236
.arg(target)
236-
.arg("--profile=wasm")
237+
.arg("--profile")
238+
.arg(profile)
237239
.arg("--features=fil-actor")
238240
.arg(format!("--manifest-path={}", manifest_path.display()))
239241
.stdout(Stdio::piped())
@@ -381,8 +383,10 @@ fn main() -> Result<()> {
381383
// `rustc` upgrades in `rust-toolchain.toml`
382384
let out_dir = out_dir.join(&channel);
383385

386+
let profile = "wasm-actor";
387+
384388
// the joins represent the subdirectories under which `cargo` creates the actual WASM aritifacts
385-
let wasm_blob_dir = out_dir.join(target).join("wasm");
389+
let wasm_blob_dir = out_dir.join(target).join(profile);
386390

387391
echo!(
388392
"actors-custom-car",

0 commit comments

Comments
 (0)