Skip to content

Commit

Permalink
Debug issue on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 11, 2022
1 parent b63701c commit 6f3b356
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cli/src/commands/create_exe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ impl CreateExe {
)?;
}
} else {
println!("compiling non-pirita with object format {object_format:?}");
match object_format {
ObjectFormat::Serialized => {
let module = Module::from_file(&store, &wasm_module_path)
Expand Down Expand Up @@ -569,6 +570,8 @@ impl CreateExe {
.arg(&zig_triple)
.arg(&format!("-L{}", libwasmer_path.display()))
.arg(&format!("-l:{}", lib_filename))
// xcrun --show-sdk-path
// .arg("-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/usr/include")
.arg(&format!("-I{}", include_dir.display()))
.arg(&format!("-I{}", header_code_path.display()));
if !zig_triple.contains("windows") {
Expand All @@ -580,6 +583,8 @@ impl CreateExe {
cmd_mut = cmd_mut.arg(volume_obj.clone());
}

println!("cmd (zig cc): {:?}", cmd_mut);

cmd_mut
.arg("-o")
.arg(&output_path)
Expand Down

0 comments on commit 6f3b356

Please sign in to comment.