diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-09 17:53:59 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-11 11:20:48 -0700 |
| commit | f27ba93319ca9c3ae677952941717e072126228b (patch) | |
| tree | 59f99b5f46633918e1c6f530615be91373b40412 /mesonbuild/programs.py | |
| parent | 8f81358b0452bb3575bd746ac55b0c5a941402b3 (diff) | |
| download | meson-f27ba93319ca9c3ae677952941717e072126228b.tar.gz | |
fix rustc -l argument on Windows
On Windows, rustc searches both FOO.lib and libFOO.a when passed -lfoo.
This means that the check for nonstandard names in the Unix sense is
too struct, and indeed it breaks passing for example -lkernel32 (which
adds kernel32.lib to the link).
Fix this by special casing Windows. Extract the logic to the Rust
compiler class for clarity.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/programs.py')
0 files changed, 0 insertions, 0 deletions
