diff options
| author | L. E. Segovia <amy@amyspark.me> | 2022-11-30 18:14:42 -0300 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-04-05 15:11:52 -0700 |
| commit | 82399123797a838d92b60cdc0e56e1b34536aea6 (patch) | |
| tree | c19e800bb0e271204531b665a48d4735b0493238 /docs | |
| parent | 06bc8a8d37620506ec5d176577fdc9f6ae5f011b (diff) | |
| download | meson-82399123797a838d92b60cdc0e56e1b34536aea6.tar.gz | |
compilers: Ensure -L flags do not get reordered when used with MSVC
If -L flags get into CLikeCompiler::build_wrapper_args, they will be
correctly detected and the /LINK flag added to the list. However,
CompilerArgs::__iadd__ will reorder them to the front, thinking they're
GNU-style flags, and this will cause MSVC to ignore them after
conversion.
The fix is twofold:
1. Convert all the linker args into their compiler form, making sure the
/LINK argument is dropped (see 2)
2. Insert /LINK into extra_args if not already present
3. Execute in situ the unix_to_native replacement, ensuring no further
reordering occurs.
Fixes #11113
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
