Skip to content

DEBUG: meson issue on Windows#1016

Draft
wismill wants to merge 10 commits intoxkbcommon:masterfrom
wismill:build/manual-parser-files-regeneration-debug-meson-issue
Draft

DEBUG: meson issue on Windows#1016
wismill wants to merge 10 commits intoxkbcommon:masterfrom
wismill:build/manual-parser-files-regeneration-debug-meson-issue

Conversation

@wismill
Copy link
Copy Markdown
Member

@wismill wismill commented Apr 14, 2026

(Same as #1003, but dedicated to debug meson issues on Windows)

  • Does not build with meson 1.11.0
  • Does not run subdir target src/xkbcomp/update-parser

wismill added 3 commits April 14, 2026 10:31
This change introduces pre-generated `parser.c` and `parser.h` files
into the source tree and adds a manual mechanism to regenerate them.

- Added a `yacc-wrapper` script to ensure Bison runs from the project
  root. This guarantees that `#line` directives in generated files use
  relative paths, keeping the source tree sanitized and portable.
- Added the initial version of the generated `parser.c` and `parser.h`
  to allow out-of-the-box compilation without a yacc dependency.
- Added the meson option `enable-parser-generation` (enabled by default)
  to choose between auto-generated and pre-generated parser files.
- Implemented the `src/xkbcomp/update-parser` custom target (not built
  by default) to allow developers to manually sync the pre-generated
  parser files after a `parser.y` update.

This approach prevents “Bison lock-in” while maintaining the ability
to update the grammar as needed.
- Ensure pre-generated parser files work everywhere.
- Ensure pre-generated parser files update works on Linux.
  For some reason the Windows CI fails on the same task and I could
  not figure out why, so I removed it.
Meson 1.11.0 has a bug that prevents the build.
@wismill wismill changed the title Debug meson issue on Windows DEBUG: meson issue on Windows Apr 14, 2026
@wismill wismill force-pushed the build/manual-parser-files-regeneration-debug-meson-issue branch 2 times, most recently from 51d95e8 to f7fbf10 Compare April 14, 2026 10:14
- Does not build with meson 1.11.0
- Does not run subdir target src/xkbcomp/update-parser
@wismill wismill force-pushed the build/manual-parser-files-regeneration-debug-meson-issue branch 2 times, most recently from 93306ca to 389b4be Compare April 15, 2026 10:22
@wismill wismill force-pushed the build/manual-parser-files-regeneration-debug-meson-issue branch from 389b4be to 856bab0 Compare April 15, 2026 10:25
@wismill wismill force-pushed the build/manual-parser-files-regeneration-debug-meson-issue branch from d785c4f to c6cffc7 Compare April 15, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant