Skip to content

meson/configure_make: avoid resetting toolchain vars#1508

Draft
novas0x2a wants to merge 1 commit intomainfrom
cmake-generators-meson
Draft

meson/configure_make: avoid resetting toolchain vars#1508
novas0x2a wants to merge 1 commit intomainfrom
cmake-generators-meson

Conversation

@novas0x2a
Copy link
Copy Markdown
Collaborator

if the target wants to override the value of a toolchain variable via env input, allow that, and don't overwrite it. This is useful for, for example, preventing the meson fallback to cmake.

These values are already set in cc_external_rule_impl via the tools_data (which loads tool.env from the toolchains themselves), however, since meson has always used the path as the primary determinant for these values, just move the assignment from the path up a bit so it's before the user assignment overrides.

Handle MAKE for autotools similarly. Note that it's not actually a hard requirement that the toolchains set their primary variable; preinstalled_make sets path but not MAKE. This is probably a bug, but it's a much larger overhaul to make sure we can trust the toolchain vars.

@novas0x2a novas0x2a enabled auto-merge (squash) March 20, 2026 07:14
if the target wants to override the value of a toolchain variable via
env input, allow that, and don't overwrite it. This is useful for, for
example, preventing the meson fallback to cmake.

These values are already set in cc_external_rule_impl via the tools_data
(which loads tool.env from the toolchains themselves), however, since
meson has always used the path as the primary determinant for these
values, just move the assignment from the path up a bit so it's before
the user assignment overrides.
@novas0x2a novas0x2a force-pushed the cmake-generators-meson branch from c7d844c to 4aae982 Compare March 20, 2026 07:17
@novas0x2a novas0x2a disabled auto-merge March 20, 2026 07:21
@novas0x2a novas0x2a marked this pull request as draft March 20, 2026 07:22
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