Skip to content

Commit

Permalink
This linking option is required in older rust versions, not newer
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Aug 28, 2022
1 parent ae799f3 commit 3f0fdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct TreeSitterParser {
/// This should be possible in the cc crate directly after
/// https://github.com/rust-lang/cc-rs/pull/671
fn emit_whole_archive_link_flags(build: &mut cc::Build, lib_name: &str, is_cpp: bool) {
if rustc::is_min_version("1.60.0").unwrap_or(false) {
if rustc::is_max_version("1.60.0").unwrap_or(false) {
// whole-archive was only stabilised in 1.61, and we don't
// need it in earlier versions.
return;
Expand Down

0 comments on commit 3f0fdbf

Please sign in to comment.