From 9cf781ce1a96bb732cb539df1e42cdcb61edf25f Mon Sep 17 00:00:00 2001 From: Ola x Nilsson Date: Tue, 12 Sep 2023 12:21:21 +0200 Subject: [PATCH] Allow gnu_time64_abi and set it with set_cfg --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 47c1cd439742b..68ae68b2641bd 100644 --- a/build.rs +++ b/build.rs @@ -13,6 +13,7 @@ const ALLOWED_CFGS: &'static [&'static str] = &[ "freebsd12", "freebsd13", "freebsd14", + "gnu_time64_abi", "libc_align", "libc_cfg_target_vendor", "libc_const_extern_fn", @@ -81,7 +82,7 @@ fn main() { // Some ABIs need to redirect time related symbols to their time64 equivalents. if is_gnu_time64_abi() { - println!("cargo:rustc-cfg=gnu_time64_abi"); + set_cfg("gnu_time64_abi"); } // On CI: deny all warnings