Skip to content

Commit 545fc92

Browse files
committed
Allow gnu_time64_abi and set it with set_cfg
1 parent 878821c commit 545fc92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
1313
"freebsd12",
1414
"freebsd13",
1515
"freebsd14",
16+
"gnu_time64_abi",
1617
"libc_align",
1718
"libc_cfg_target_vendor",
1819
"libc_const_extern_fn",
@@ -81,7 +82,7 @@ fn main() {
8182

8283
// Some ABIs need to redirect time related symbols to their time64 equivalents.
8384
if is_gnu_time64_abi() {
84-
println!("cargo:rustc-cfg=gnu_time64_abi");
85+
set_cfg("gnu_time64_abi");
8586
}
8687

8788
// On CI: deny all warnings

0 commit comments

Comments
 (0)