mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 21:38:39 +00:00
cargo fmt
This commit is contained in:
@@ -189,13 +189,11 @@ fn test_run() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for test in TESTS.iter() {
|
for test in TESTS.iter() {
|
||||||
|
|
||||||
let mut manifest_dir_parent = std::path::Path::new(&manifest_dir);
|
let mut manifest_dir_parent = std::path::Path::new(&manifest_dir);
|
||||||
let mut manifest_dir_parent = manifest_dir_parent.parent().unwrap();
|
let mut manifest_dir_parent = manifest_dir_parent.parent().unwrap();
|
||||||
let c_file_path = manifest_dir_parent.join(&format!("{test}.c"));
|
let c_file_path = manifest_dir_parent.join(&format!("{test}.c"));
|
||||||
|
|
||||||
if target.contains("msvc") {
|
if target.contains("msvc") {
|
||||||
|
|
||||||
let mut build = cc::Build::new();
|
let mut build = cc::Build::new();
|
||||||
let mut build = build
|
let mut build = build
|
||||||
.cargo_metadata(false)
|
.cargo_metadata(false)
|
||||||
@@ -280,7 +278,10 @@ fn test_run() {
|
|||||||
if !std::path::Path::new(&exe_outpath).exists() {
|
if !std::path::Path::new(&exe_outpath).exists() {
|
||||||
panic!("error: {exe_outpath} does not exist");
|
panic!("error: {exe_outpath} does not exist");
|
||||||
}
|
}
|
||||||
if !std::path::Path::new(&wasmer_dll_dir).join("wasmer.dll").exists() {
|
if !std::path::Path::new(&wasmer_dll_dir)
|
||||||
|
.join("wasmer.dll")
|
||||||
|
.exists()
|
||||||
|
{
|
||||||
panic!("error: {wasmer_dll_dir} has no wasmer.dll");
|
panic!("error: {wasmer_dll_dir} has no wasmer.dll");
|
||||||
}
|
}
|
||||||
// execute
|
// execute
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ impl Config {
|
|||||||
println!("manifest dir = {manifest_dir}, wasmer root dir = {wasmer_base_dir}");
|
println!("manifest dir = {manifest_dir}, wasmer root dir = {wasmer_base_dir}");
|
||||||
config.wasmer_dir = wasmer_base_dir.clone() + "/package";
|
config.wasmer_dir = wasmer_base_dir.clone() + "/package";
|
||||||
if !std::path::Path::new(&config.wasmer_dir).exists() {
|
if !std::path::Path::new(&config.wasmer_dir).exists() {
|
||||||
|
|
||||||
println!("running make build-capi...");
|
println!("running make build-capi...");
|
||||||
// run make build-capi
|
// run make build-capi
|
||||||
let mut cmd = std::process::Command::new("make");
|
let mut cmd = std::process::Command::new("make");
|
||||||
|
|||||||
Reference in New Issue
Block a user