summaryrefslogtreecommitdiff
path: root/test cases/unit/113 classpath/com/mesonbuild/Simple.java
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-08-04 14:11:35 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-08-10 21:46:14 +0300
commit50c617bfabf3043c7a99d28112463ad68699b397 (patch)
tree5ed898efef2ae7312836a8fa5609f62e95669910 /test cases/unit/113 classpath/com/mesonbuild/Simple.java
parent7082dfe547aba74007d5a634010216f732eb0af9 (diff)
downloadmeson-50c617bfabf3043c7a99d28112463ad68699b397.tar.gz
options: ensure all build keys are changed to host
OptionStore.get_value did not change build keys to host when not cross-compiling. get_value_object_and_value_for also didn't when accessing self.augments. Make all accessors go through ensure_and_validate_key so that the conversion is done early. Otherwise, when "native: true" targets look up compiler options they do so with the "build.*" name, which does not exist when not cross compiling. This removes the distinction between get_value(), meant to be for global options, and get_value_for() which would be for project-specific options. While the distinction was added in commit d37d649b0 ("Make all Meson level options overridable per subproject.", 2025-02-13), it is not particularly useful and can be a source of bugs like the one in test_build_to_host_subproject testcase (corresponding to issue #14869). Fixes: #14869 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases/unit/113 classpath/com/mesonbuild/Simple.java')
0 files changed, 0 insertions, 0 deletions