mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
Change order of iterating to prefer -headless library when linking
This commit is contained in:
@@ -1763,10 +1763,10 @@ pub(super) mod utils {
|
||||
OsStr::new("libwasmer.a"),
|
||||
OsStr::new("wasmer.lib"),
|
||||
];
|
||||
files
|
||||
target_files
|
||||
.iter()
|
||||
.find(|f| {
|
||||
target_files.iter().any(|q| Some(*q) == f.file_name())
|
||||
.find_map(|q| {
|
||||
files.iter().find(|f| f.file_name() == Some(*q))
|
||||
})
|
||||
.cloned()
|
||||
.ok_or_else(|| {
|
||||
|
||||
Reference in New Issue
Block a user