Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/libc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a5e53d79020f7503415d236fc0b44bfef6bdaf3d
Choose a base ref
..
head repository: rust-lang/libc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 45eefd1fcaf2906f8d10a4ac8ccc9d5721b6e4c7
Choose a head ref
Showing with 4 additions and 2 deletions.
  1. +1 −1 .github/workflows/ci.yaml
  2. +1 −0 build.rs
  3. +2 −1 ci/verify-build.sh
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ jobs:
- toolchain: beta
os: ubuntu-24.04
runs-on: ${{ matrix.os }}
timeout-minutes: 40
timeout-minutes: 25
env:
TOOLCHAIN: ${{ matrix.toolchain }}
steps:
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -84,6 +84,7 @@ fn main() {
if linux_time_bits64 {
set_cfg("linux_time_bits64");
}
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64");

// On CI: deny all warnings
if libc_ci {
3 changes: 2 additions & 1 deletion ci/verify-build.sh
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ test_target() {
no_dist="$2"

RUSTFLAGS="${RUSTFLAGS:-}"

# The basic command that is run each time
cmd="cargo +$rust build --target $target"

@@ -72,7 +73,7 @@ test_target() {

if [ "$os" = "linux" ]; then
# Test with the equivalent of __USE_TIME_BITS64
RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64=1 $cmd --target-dir "target/$target-time64"
RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64=1 $cmd
fi

# Test again without default features, i.e. without "std"