You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.unwrap_or_else(|_| panic!("failed to copy engine from {:?}", engine_path));
58
-
}
59
-
}
60
-
61
30
// Copy OS specific pre-built binaries to a known location. The binaries will be embedded in the final binary and
62
31
// extracted to a temporary location if it's not already installed.
63
32
fncopy_prebuilt_binaries(){
64
-
let target_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
65
-
let target_os = PathBuf::from(std::env::var("CARGO_CFG_TARGET_OS").unwrap());
66
-
let root = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
33
+
let target_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
34
+
let target_os = PathBuf::from(env::var("CARGO_CFG_TARGET_OS").unwrap());
35
+
let root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
67
36
68
37
let vendor_dir = root.join("vendor").join(target_os);
69
38
let target_vendor_dir = target_dir.join("vendor");
@@ -79,3 +48,70 @@ fn copy_prebuilt_binaries() {
79
48
}
80
49
});
81
50
}
51
+
52
+
// Copy the engine binary build from the `core` crate, and run wasm-strip + wasm-opt against it as suggested by https://github.com/bytecodealliance/wizer/issues/27.
0 commit comments