mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +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() {
|
||||
command.arg("-L");
|
||||
command.arg(&format!("{}/lib", config.wasmer_dir));
|
||||
command.arg(&format!("{}/lib/", config.wasmer_dir));
|
||||
command.arg(&format!("-lwasmer"));
|
||||
}
|
||||
command.arg("-o");
|
||||
|
||||
@@ -245,13 +245,13 @@ fn test_ok() {
|
||||
command.arg(config.msvc_cflags.clone());
|
||||
} else if !config.wasmer_dir.is_empty() {
|
||||
command.arg("/I");
|
||||
command.arg(&format!("{}", config.root_dir));
|
||||
command.arg(&format!("{}/wasm-c-api/", config.root_dir));
|
||||
command.arg("/I");
|
||||
command.arg(&format!("{}/include", config.wasmer_dir));
|
||||
command.arg(&format!("{}/include/", config.wasmer_dir));
|
||||
let mut log = String::new();
|
||||
fixup_symlinks(&[
|
||||
format!("{}/include", config.wasmer_dir),
|
||||
format!("{}", config.root_dir),
|
||||
format!("{}/include/", config.wasmer_dir),
|
||||
format!("{}/wasm-c-api/", config.root_dir),
|
||||
], &mut log)
|
||||
.expect(&format!("failed to fix symlinks: {log}"));
|
||||
println!("{log}");
|
||||
|
||||
Reference in New Issue
Block a user