Skip to content

Commit f41a06d

Browse files
committed
Fix linking in Rust 1.61+
rust-lang/rust#93901
1 parent 1807bec commit f41a06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ impl WindowsResource {
609609
}
610610

611611
println!("cargo:rustc-link-search=native={}", output_dir);
612-
println!("cargo:rustc-link-lib=static=resource");
612+
println!("cargo:rustc-link-lib=static:+whole-archive=resource");
613613

614614
Ok(())
615615
}

0 commit comments

Comments
 (0)