Skip to content

Commit

Permalink
Fix musl_time64_abi cfg flag in build script
Browse files Browse the repository at this point in the history
By using set_cfg() helper.
  • Loading branch information
myl7 committed Aug 5, 2024
1 parent b56c65a commit 0185395
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 @@ -17,6 +17,7 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
"libc_const_extern_fn",
"libc_const_extern_fn_unstable",
"libc_deny_warnings",
"musl_time64_abi",
];

// Extra values to allow for check-cfg.
Expand Down Expand Up @@ -70,7 +71,7 @@ fn main() {
// Some ABIs need to redirect time related symbols to their time64
// equivalents. See #2088 and #1848 for more information.
if is_musl_time64_abi() {
println!("cargo:rustc-cfg=musl_time64_abi");
set_cfg("musl_time64_abi");
}

// On CI: deny all warnings
Expand Down

0 comments on commit 0185395

Please sign in to comment.