diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-04 14:28:11 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-08-04 09:08:36 -0700 |
| commit | e99253c1bd452e385c9f20ca63d5e06c85759972 (patch) | |
| tree | 5b8a7b6bb89cfb78f49d3502673c22cfe8af167b /mesonbuild/compilers/cpp.py | |
| parent | 070579542f19196abd06beb9e67a9a9012469225 (diff) | |
| download | meson-e99253c1bd452e385c9f20ca63d5e06c85759972.tar.gz | |
build: fix introspection interpreter issue when project selects Rust
The introspection interpreter sometimes produces targets with no source
files; BuildTarget will then pick a random compiler, according to the
order in clink_langs.
According to the comment in sort_clink, clink_langs are supposed
to list languages from *lowest* to highest priority. However,
process_compilers_late() process clink_langs in straight order and
returns the first language; which is the one with lowest priority.
This became visible with the addition of Rust to clink_langs,
because Rust has limitation on the names of library targets, but
the bug existed before.
Fixes: e49f2f7283e1d9f18e2f5f54647c07287cd70339
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
0 files changed, 0 insertions, 0 deletions
