mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
Try fixing wrong include paths on Windows
This commit is contained in:
@@ -329,7 +329,7 @@ fn test_run() {
|
|||||||
}
|
}
|
||||||
} else if !config.wasmer_dir.is_empty() {
|
} else if !config.wasmer_dir.is_empty() {
|
||||||
command.arg("-L");
|
command.arg("-L");
|
||||||
command.arg(&format!("{}/lib", config.wasmer_dir));
|
command.arg(&format!("{}/lib/", config.wasmer_dir));
|
||||||
command.arg(&format!("-lwasmer"));
|
command.arg(&format!("-lwasmer"));
|
||||||
}
|
}
|
||||||
command.arg("-o");
|
command.arg("-o");
|
||||||
|
|||||||
@@ -245,13 +245,13 @@ fn test_ok() {
|
|||||||
command.arg(config.msvc_cflags.clone());
|
command.arg(config.msvc_cflags.clone());
|
||||||
} else if !config.wasmer_dir.is_empty() {
|
} else if !config.wasmer_dir.is_empty() {
|
||||||
command.arg("/I");
|
command.arg("/I");
|
||||||
command.arg(&format!("{}", config.root_dir));
|
command.arg(&format!("{}/wasm-c-api/", config.root_dir));
|
||||||
command.arg("/I");
|
command.arg("/I");
|
||||||
command.arg(&format!("{}/include", config.wasmer_dir));
|
command.arg(&format!("{}/include/", config.wasmer_dir));
|
||||||
let mut log = String::new();
|
let mut log = String::new();
|
||||||
fixup_symlinks(&[
|
fixup_symlinks(&[
|
||||||
format!("{}/include", config.wasmer_dir),
|
format!("{}/include/", config.wasmer_dir),
|
||||||
format!("{}", config.root_dir),
|
format!("{}/wasm-c-api/", config.root_dir),
|
||||||
], &mut log)
|
], &mut log)
|
||||||
.expect(&format!("failed to fix symlinks: {log}"));
|
.expect(&format!("failed to fix symlinks: {log}"));
|
||||||
println!("{log}");
|
println!("{log}");
|
||||||
|
|||||||
Reference in New Issue
Block a user