mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Debug issue on MacOS
This commit is contained in:
@@ -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)
|
||||
@@ -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") {
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user