Skip to content

Commit 04e7098

Browse files
committed
Fix linking issue on Linux using Rust 1.82.0
1 parent 9a00fcd commit 04e7098

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ impl Build {
214214
lib_dir,
215215
include_dir,
216216
libs: vec![
217-
ast_lib_name.to_string(),
217+
vm_lib_name.to_string(),
218218
compiler_lib_name.to_string(),
219+
ast_lib_name.to_string(),
219220
custom_lib_name.to_string(),
220-
vm_lib_name.to_string(),
221221
],
222222
cpp_stdlib: Self::get_cpp_link_stdlib(target, host),
223223
};
@@ -277,7 +277,7 @@ impl Artifacts {
277277

278278
pub fn print_cargo_metadata(&self) {
279279
println!("cargo:rustc-link-search=native={}", self.lib_dir.display());
280-
for lib in self.libs.iter() {
280+
for lib in &self.libs {
281281
println!("cargo:rustc-link-lib=static={}", lib);
282282
}
283283
if let Some(ref cpp_stdlib) = self.cpp_stdlib {

0 commit comments

Comments
 (0)