Try fixing wrong include paths on Windows

This commit is contained in:
Felix Schütt
2022-09-22 13:25:09 +02:00
parent 9a3f852652
commit 114e8177e6
2 changed files with 5 additions and 5 deletions

View File

@@ -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");

View File

@@ -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}");