summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2022-11-30 18:14:42 -0300
committerDylan Baker <dylan@pnwbakers.com>2024-04-05 15:11:52 -0700
commit82399123797a838d92b60cdc0e56e1b34536aea6 (patch)
treec19e800bb0e271204531b665a48d4735b0493238 /docs
parent06bc8a8d37620506ec5d176577fdc9f6ae5f011b (diff)
downloadmeson-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