mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 13:48:26 +00:00
Fix compilation issue in create-exe function
This commit is contained in:
@@ -439,7 +439,7 @@ impl CreateExe {
|
|||||||
.canonicalize()
|
.canonicalize()
|
||||||
.unwrap_or_else(|_| target_file_path.clone());
|
.unwrap_or_else(|_| target_file_path.clone());
|
||||||
let files = untar(tarball, target_file_path)?;
|
let files = untar(tarball, target_file_path)?;
|
||||||
files.into_iter().find(|f| f.ends_with("libwasmer.a")).ok_or_else(|| {
|
files.iter().find(|f| f.ends_with("libwasmer.a")).cloned().ok_or_else(|| {
|
||||||
anyhow!("Could not find libwasmer for {} target in the fetched release from Github: you can download it manually and specify its path with the --cross-compilation-library-path LIBRARY_PATH flag. (files = {files:#?}", target)})?
|
anyhow!("Could not find libwasmer for {} target in the fetched release from Github: you can download it manually and specify its path with the --cross-compilation-library-path LIBRARY_PATH flag. (files = {files:#?}", target)})?
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
|
|||||||
@@ -33,11 +33,7 @@ fn test_cross_compile_python_windows() -> anyhow::Result<()> {
|
|||||||
"x86_64-windows-gnu",
|
"x86_64-windows-gnu",
|
||||||
];
|
];
|
||||||
|
|
||||||
let compilers = &[
|
let compilers = &["cranelift", "singlepass", "llvm"];
|
||||||
"cranelift",
|
|
||||||
"singlepass",
|
|
||||||
"llvm",
|
|
||||||
];
|
|
||||||
|
|
||||||
for t in targets {
|
for t in targets {
|
||||||
for c in compilers {
|
for c in compilers {
|
||||||
|
|||||||
Reference in New Issue
Block a user