Skip to content

l4re: update definitions and test infra - #5275

Merged
JohnTitor merged 1 commit into
rust-lang:mainfrom
farao:update-l4re
Jul 11, 2026
Merged

l4re: update definitions and test infra#5275
JohnTitor merged 1 commit into
rust-lang:mainfrom
farao:update-l4re

Conversation

@farao

@farao farao commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Description

The definitions in l4re have changed, mostly due to uclibc being updated and uclibc config having changed. Also, this makes the test infrastructure work for l4re again.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@JohnTitor JohnTitor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohnTitor
JohnTitor added this pull request to the merge queue Jul 11, 2026
Merged via the queue into rust-lang:main with commit 6094fee Jul 11, 2026
57 checks passed
@farao

farao commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

Nice, thanks for the quick review and merge! Are there by any chance plans to make a new release soon?

@farao
farao deleted the update-l4re branch July 12, 2026 09:26
@tgross35

Copy link
Copy Markdown
Contributor

I'm planning on a new release in the next couple of days

@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Jul 20, 2026
Comment thread libc-test/build.rs
Comment on lines +6388 to +6389
#if defined(__linux__) && defined(__has_include)
#if __has_include(<linux/version.h>)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does l4re define __linux__? Or what's the reason for this change?

@farao farao Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit more complicated. We use the linux gcc for compiling for l4re (which means we configure/parametrize it to link to our own libs, to use the l4re loader etc.). Therefore, __linux__ is set in this case because it's a linux-gcc but we don't use it as such.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. Is there a definition like __l4re__ that winds up set? And/or a way to check the l4re version?

tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5275>)
(cherry picked from commit 6094fee)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5275>)
(cherry picked from commit 6094fee)
@tgross35 tgross35 mentioned this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5275>)
(cherry picked from commit 6094fee)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5275>)
(cherry picked from commit 6094fee)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-linux O-linux-like O-unix stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants