builtins: change mv to cp to prevent wasm build from crashing

This commit is contained in:
Brian Carroll 2022-02-27 12:40:04 +00:00
parent 8290fbfb1b
commit 07748b2b86

View File

@ -103,8 +103,8 @@ fn generate_object_file(
println!("Moving zig object `{}` to: {}", zig_object, dest_obj);
// we store this .o file in rust's `target` folder
run_command(&bitcode_path, "mv", &[src_obj, dest_obj]);
// we store this .o file in rust's `target` folder (for wasm we need to leave a copy here too)
run_command(&bitcode_path, "cp", &[src_obj, dest_obj]);
}
fn generate_bc_file(