Skip to content

Commit

Permalink
Allow gnu_time64_abi and set it with set_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Sep 12, 2023
1 parent 205021e commit 9cf781c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9cf781c

Please sign in to comment.