Skip to content

Commit

Permalink
Fix linking in Rust 1.61+
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed May 22, 2022
1 parent 2819c50 commit 4875794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ impl WindowsResource {
}

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

Ok(())
}
Expand Down

0 comments on commit 4875794

Please sign in to comment.