summaryrefslogtreecommitdiff
path: root/docs/markdown/Java-module.md
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-06 18:35:40 +0200
committerEli Schwartz <eschwartz93@gmail.com>2025-05-15 02:03:46 -0400
commit2d1c67f095e5bf709a1fa2a21a99e8c1d543961c (patch)
tree8c9021545aa5ea5b1cb5f251c516d031e871f4a2 /docs/markdown/Java-module.md
parentd11fa36196b6f037d95304772efd6e51b39b8379 (diff)
downloadmeson-2d1c67f095e5bf709a1fa2a21a99e8c1d543961c.tar.gz
options: restore special behavior of CFLAGS vs. c_args
For compatibility with Autotools, CFLAGS is added to the linker command line if the compiler acts as a linker driver. However, this behavior was lost in commit d37d649b0 ("Make all Meson level options overridable per subproject.", 2025-02-13). The issue is that (for example) c_link_args is stored in env.options, and from that point on it is treated as a machine-file option. This includes not being able to override it in compilers.get_global_options: - initialize_from_top_level_project_call places it in pending_options - add_lang_args passes the right value to add_compiler_option - add_compiler_option calls add_system_option_internal - add_system_option_internal fishes the value out of pending_options and ignores what get_global_options provided. Instead, store the putative values of the compiler options coming from the environment in a separate dictionary, that is only accessed by get_global_options. This way it never appears in pending_options, and also there is no internal *_env_args variable anymore. Fixes: #14533 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/Java-module.md')
0 files changed, 0 insertions, 0 deletions