Update debug output to debug why create-exe on Windows doesn't output anything

This commit is contained in:
Felix Schütt
2022-11-16 12:29:07 +01:00
parent f73cf54ce8
commit 493f393abc
2 changed files with 26 additions and 9 deletions

View File

@@ -550,6 +550,8 @@ impl CreateExe {
header_code_path = std::env::current_dir()?;
}
println!("Output result to: {}", output_path.display());
/* Compile main function */
let compilation = {
let mut include_dir = libwasmer_path.clone();
@@ -565,6 +567,10 @@ impl CreateExe {
cmd.arg("--library");
cmd.arg("c");
cmd.arg("-OReleaseSafe");
cmd.arg("-fstrip");
cmd.arg("-dead_strip");
cmd.arg("-dead_strip_dylibs");
cmd.arg("--verbose-cc");
cmd.arg(&format!("-femit-bin={}", output_path.display()));
if !zig_triple.contains("windows") {
@@ -579,6 +585,7 @@ impl CreateExe {
cmd.arg(volume_obj.clone());
}
println!("{:?}", cmd);
cmd.output().context("Could not execute `zig`")?
};
if !compilation.status.success() {