diff --git a/CHANGELOG.md b/CHANGELOG.md index 96d8c0c..f2b51ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +- Recognize unstable `target.cfg(relocation_model = "...")` on nightly. + ## [0.1.8] - 2023-07-03 - Fix build error from dependency when built with `-Z minimal-versions`. diff --git a/src/resolve.rs b/src/resolve.rs index 582661e..1621e5a 100644 --- a/src/resolve.rs +++ b/src/resolve.rs @@ -330,7 +330,9 @@ impl Cfg { vendor = Some(cfg_expr::targets::Vendor::new(value.to_owned())); } // Unstable cfgs recognized by Cargo - "target_has_atomic_equal_alignment" | "target_has_atomic_load_store" => { + "target_has_atomic_equal_alignment" + | "target_has_atomic_load_store" + | "relocation_model" => { if let Some(values) = key_values.get_mut(name) { values.insert(value.to_owned()); } else {