Repository navigation
Keep GCC's GNU dialects in the musl builds - #142
Merged
Merged
Conversation
The build/ roll in S21 (b3574228b) compiles C as -std=c23 and gives GCC the strict -std=c++20 instead of -std=gnu11 and -std=gnu++20. Our musl targets build with GCC 13 (host tools) and musl.cc's GCC, which reject -std=c23, so both musl jobs failed in nasm. musl/build.patch keeps the GNU dialects for GCC, as before the roll; clang builds take C23.
Open
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #141 (S21), which merged before this fix: the musl builds fail on main since S21.
The
build/roll in S21 (b3574228b) compiles C as-std=c23and gives GCC the strict-std=c++20instead of-std=gnu11and-std=gnu++20. Our musl targets are the only ones built with GCC (Ubuntu 24.04's GCC 13 for host tools, musl.cc's for the library), and GCC there rejects-std=c23:Both musl jobs failed in nasm (run 47207323362).
patches/embedpdf-runtime/musl/build.patchgains a hunk inbuild/config/compiler/BUILD.gnthat keeps GCC on-std=gnu11and-std=gnu++20, as before the roll; clang targets keep upstream's C23. Only the musl targets apply this patch. The S21 report notes it under Build and patches.Checked locally with
gn genfor linuxmusl-x64 with CI's arguments: every C file gets-std=gnu11, every C++ file-std=gnu++20, and no clang-only flag reaches GCC. No GCC on the Mac, so the musl jobs in CI are the real check: runrelease-libpdfium.ymlon this branch, or rerun the musl jobs.