Skip to content

build: exclude clang prereleases from compiler warning options#19566

Closed
MarcelRaad wants to merge 1 commit into
curl:masterfrom
MarcelRaad:clang_warnings_exclude_prereleases
Closed

build: exclude clang prereleases from compiler warning options#19566
MarcelRaad wants to merge 1 commit into
curl:masterfrom
MarcelRaad:clang_warnings_exclude_prereleases

Conversation

@MarcelRaad

@MarcelRaad MarcelRaad commented Nov 17, 2025

Copy link
Copy Markdown
Member

Starting with clang 18, stable clang releases start with minor version 1.
Exclude pre-releases with minor version 0 from the compiler warning
options for that major version.

This fixes the build with Android NDK r29, which uses a prerelease
version of clang 21 that doesn't know the new options yet.

@github-actions github-actions Bot added the build label Nov 17, 2025
MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Nov 17, 2025
Starting with clang 18, stable clang releases start with minor
version 1. Exclude prereleases with minor version 0 from the compiler
warning options for that major version.

This fixes the build with Android NDK r29, which uses a prerelease
version of clang 21 that doesn't know the new options yet.

Closes curl#19566
@MarcelRaad
MarcelRaad force-pushed the clang_warnings_exclude_prereleases branch from 3916049 to 09a0845 Compare November 17, 2025 11:37
@vszakats

Copy link
Copy Markdown
Member

Agree, nice catch!

@vszakats

Copy link
Copy Markdown
Member

GH issues...

@vszakats

Copy link
Copy Markdown
Member

@MarcelRaad try pushing again, to trigger CI one more time?

Starting with clang 18, stable clang releases start with minor
version 1. Exclude prereleases with minor version 0 from the compiler
warning options for that major version.

This fixes the build with Android NDK r29, which uses a prerelease
version of clang 21 that doesn't know the new options yet.

Closes curl#19566
@MarcelRaad
MarcelRaad force-pushed the clang_warnings_exclude_prereleases branch from 09a0845 to f2e0969 Compare November 17, 2025 12:10
@MarcelRaad

Copy link
Copy Markdown
Member Author

Looks better now. Thanks!

@vszakats vszakats closed this in e9a973c Nov 17, 2025
@vszakats

Copy link
Copy Markdown
Member

Thanks @MarcelRaad, merged!

@MarcelRaad
MarcelRaad deleted the clang_warnings_exclude_prereleases branch November 17, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants