mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Debug /include directory and don't emit empty ldflags
This commit is contained in:
@@ -271,7 +271,9 @@ fn test_run() {
|
|||||||
command.arg("-I");
|
command.arg("-I");
|
||||||
command.arg(&format!("{}/include", config.wasmer_dir));
|
command.arg(&format!("{}/include", config.wasmer_dir));
|
||||||
}
|
}
|
||||||
command.arg(config.ldflags.clone());
|
if !config.ldflags.is_empty() {
|
||||||
|
command.arg(config.ldflags.clone());
|
||||||
|
}
|
||||||
command.arg(&format!("{manifest_dir}/../{test}.c"));
|
command.arg(&format!("{manifest_dir}/../{test}.c"));
|
||||||
if !config.ldlibs.is_empty() {
|
if !config.ldlibs.is_empty() {
|
||||||
command.arg(config.ldlibs.clone());
|
command.arg(config.ldlibs.clone());
|
||||||
|
|||||||
@@ -73,6 +73,20 @@ impl Config {
|
|||||||
println!("error in reading config.wasmer_dir: {e}");
|
println!("error in reading config.wasmer_dir: {e}");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
println!("list {}/include", config.wasmer_dir);
|
||||||
|
match std::fs::read_dir(&config.wasmer_dir) {
|
||||||
|
Ok(o) => {
|
||||||
|
for entry in o {
|
||||||
|
let entry = entry.unwrap();
|
||||||
|
let path = entry.path();
|
||||||
|
println!(" {:?}", path.file_name());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
println!("error in reading config.wasmer_dir: {e}");
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if config.root_dir.is_empty() {
|
if config.root_dir.is_empty() {
|
||||||
@@ -281,7 +295,9 @@ fn test_ok() {
|
|||||||
command.arg("-I");
|
command.arg("-I");
|
||||||
command.arg(&format!("{}/include", config.wasmer_dir));
|
command.arg(&format!("{}/include", config.wasmer_dir));
|
||||||
}
|
}
|
||||||
command.arg(config.ldflags.clone());
|
if !config.ldflags.is_empty() {
|
||||||
|
command.arg(config.ldflags.clone());
|
||||||
|
}
|
||||||
command.arg(&format!("{manifest_dir}/../{test}.c"));
|
command.arg(&format!("{manifest_dir}/../{test}.c"));
|
||||||
if !config.ldlibs.is_empty() {
|
if !config.ldlibs.is_empty() {
|
||||||
command.arg(config.ldlibs.clone());
|
command.arg(config.ldlibs.clone());
|
||||||
|
|||||||
Reference in New Issue
Block a user