Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't force any diagnostics to be errors in bundled Harfbuzz - #32324

Merged
tacaswell merged 1 commit into
matplotlib:mainfrom
QuLogic:hb-no-diagnostic-error
Sep 10, 2026
Merged

Don't force any diagnostics to be errors in bundled Harfbuzz#32324
tacaswell merged 1 commit into
matplotlib:mainfrom
QuLogic:hb-no-diagnostic-error

Conversation

@QuLogic

@QuLogic QuLogic commented Sep 9, 2026

Copy link
Copy Markdown
Member

PR summary

We can't be certain that compilers won't add or change which diagnostics work for a flag. So disable Harfbuzz's pragmas that turn diagnostics into errors, as this is really something that only upstream should worry about.

This partially fixes the WASM build for Python 3.15, cf. harfbuzz/harfbuzz#6059 Though we should also update HarfBuzz too, we want to avoid this breaking for future compilers if we haven't yet done so.

AI Disclosure

None

PR quality check

  • Use an expressive title, e.g. "Fix title font property precedence"
  • New and changed code is tested
  • [n/a] Plotting related features are demonstrated in an example
  • [n/a] New features and API changes have release notes
  • [n/a] Documentation complies with general and docstring guidelines

@QuLogic QuLogic added this to the v3.11.2 milestone Sep 9, 2026
@QuLogic QuLogic added the CI: Run cibuildwheel Run wheel building tests on a PR label Sep 9, 2026
@github-actions github-actions Bot removed the CI: Run cibuildwheel Run wheel building tests on a PR label Sep 9, 2026
@QuLogic QuLogic added the CI: Run cibuildwheel Run wheel building tests on a PR label Sep 9, 2026
We can't be certain that compilers won't add or change which diagnostics
work for a flag. So disable Harfbuzz's pragmas that turn diagnostics
into errors, as this is really something that only upstream should worry
about.
@QuLogic
QuLogic force-pushed the hb-no-diagnostic-error branch from 41862db to 292dc1c Compare September 9, 2026 05:27
@github-actions github-actions Bot removed the CI: Run cibuildwheel Run wheel building tests on a PR label Sep 9, 2026
@QuLogic QuLogic added the CI: Run cibuildwheel Run wheel building tests on a PR label Sep 9, 2026

@iccir iccir left a comment

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.

Approved assuming I understand this correctly:
We can't directly add HB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR to meson.build since it's a subproject, so we add a diff to patch it when first downloaded.

@QuLogic

QuLogic commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

We can't directly add HB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR to meson.build since it's a subproject, so we add a diff to patch it when first downloaded.

Indeed, though we should have been able to set default_options: ['cpp_args=-D...', ...], but there's a bug in Meson that doesn't apply that to subprojects: mesonbuild/meson#15990 and this isn't in a release yet.

@ianthomas23

Copy link
Copy Markdown
Member

@QuLogic There is a contourpy wheel for pyodide python 3.15 available on scientific-python-nightly-wheels as of just now.

@QuLogic

QuLogic commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

Thanks @ianthomas23! It looks like we still need kiwisolver as well (I tried to set it up, but hitting some testing issues nucleic/kiwi#245)

I would not wait for that for this PR at least, as the workflow was broken before, so it should be fine for now to continue being broken.

@tacaswell
tacaswell merged commit 0350707 into matplotlib:main Sep 10, 2026
54 of 58 checks passed
@tacaswell

Copy link
Copy Markdown
Member

Merging over the wasm wheel being broken per Elliott.

@QuLogic
QuLogic deleted the hb-no-diagnostic-error branch September 10, 2026 03:36
QuLogic pushed a commit that referenced this pull request Sep 10, 2026
QuLogic added a commit that referenced this pull request Sep 10, 2026
…324-on-v3.11.x

Backport PR #32324 on branch v3.11.x (Don't force any diagnostics to be errors in bundled Harfbuzz)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: Run cibuildwheel Run wheel building tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants