Skip to content

Conversation

@dcbaker
Copy link
Member

@dcbaker dcbaker commented Apr 2, 2025

based on: #14353 for practical reasons

This removes the last use of coredata.set_default_options, which is only used in the rewriter path after the optionrefactor merge, and is completely broken by that merge. Instead we use the same path that the other interpreters use, so we can completely delete this code.

Closes: #14382

@dcbaker dcbaker added this to the optionrefactor milestone Apr 2, 2025
@dcbaker dcbaker force-pushed the submit/fix-rewrite branch 4 times, most recently from e167514 to d6da81a Compare April 2, 2025 20:21
@bonzini bonzini added options Meson configuration options rewriter regression labels Apr 4, 2025
dcbaker added 6 commits April 4, 2025 09:58
…oject_call

Machine files provide a `Mapping[OptionKey, ElementaryOptionValues]`,
but the expectation listed was that they provided options in the raw DSL
format.
The key can be an OptionKey, particularly in the next patch.
"prefix" has a lot of special handling that has to go on because so many
other options depend on prefix. It was also regressed by the option
refactor changes, so having a test feels appropriate.

This was verified against the 1.7 release, so it has the same behavior
as pre-option refactor Meson.
This was only being used by the introspection interpreter, which meant
the two interpreters had different behavior. They still do, which is
really bad because the IntrospectionInterpreter doesn't have the command
line options or project_default_options. I have a plan to fix that
later, and I don't want to spend time on it here, as it's not a
regression of this patch, it's just the status quo.

This also fixes an issue caused by dead code being left, and hit, due to
the option refactor branch.

Fixes: mesonbuild#14382
@dcbaker dcbaker force-pushed the submit/fix-rewrite branch from d6da81a to 7c2112f Compare April 4, 2025 17:02
@dcbaker dcbaker merged commit aa8f922 into mesonbuild:master Apr 8, 2025
40 of 45 checks passed
@dcbaker dcbaker deleted the submit/fix-rewrite branch April 8, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

options Meson configuration options regression rewriter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Meson rewrite fails with unhandled exception

3 participants