&libdir.join(obj),
);
}
+ } else if target.ends_with("-wasi") {
+ for &obj in &["crt1.o"] {
+ builder.copy(
+ &builder.wasi_root(target).unwrap().join("lib/wasm32-wasi").join(obj),
+ &libdir.join(obj),
+ );
+ }
}
// Copies libunwind.a compiled to be linked wit x86_64-fortanix-unknown-sgx.
cargo.env("MUSL_ROOT", p);
}
}
+
+ if target.ends_with("-wasi") {
+ if let Some(p) = builder.wasi_root(target) {
+ cargo.env("WASI_ROOT", p);
+ }
+ }
}
}