From 3f0fdbff9f770616204040b1266645d6250a556a Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 27 Aug 2022 17:58:07 -0700 Subject: [PATCH] This linking option is required in older rust versions, not newer --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 8ba4c74f9c..c127512fe1 100644 --- a/build.rs +++ b/build.rs @@ -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;