aboutsummaryrefslogtreecommitdiff
path: root/unittests/pythontests.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-03-16 15:12:30 +0100
committerDylan Baker <dylan@pnwbakers.com>2022-03-16 09:24:57 -0700
commitff844f3a1fd0cac31e2f61add59393b16548c97c (patch)
tree8c6f1582eb6afd57ecc94e35d16f7e88c4ddada1 /unittests/pythontests.py
parentca7b16f93717700d9957ba9be0d968c00e2c6b6a (diff)
downloadmeson-ff844f3a1fd0cac31e2f61add59393b16548c97c.zip
meson-ff844f3a1fd0cac31e2f61add59393b16548c97c.tar.gz
meson-ff844f3a1fd0cac31e2f61add59393b16548c97c.tar.bz2
fix detection of language standard library paths
The code in the C++ and Fortran compilers' language_stdlib_only_link_flags method is broken and cannot possibly have ever worked. Instead of splitting by line, it splits by whitespace and therefore, instead of the last line of the compiler output: programs: =/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin libraries: =/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0 it is only the last field that has its first 11 characters removed. Instead of reinventing the wheel with a new and brittle pattern, reuse get_compiler_dirs. Fixes: 64c267c49 ("compilers: Add default search path stdlib_only_link_flags", 2021-09-25) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'unittests/pythontests.py')
0 files changed, 0 insertions, 0 deletions