meson/mesonbuild/compilers
Paolo Bonzini ff844f3a1f 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>
2022-03-16 09:24:57 -07:00
..
mixins compilers/gnu: set level 0 optimization to '-O0' 2022-03-02 19:59:45 +02:00
__init__.py Genericise TI compiler and add MSP430 support 2022-02-02 16:45:05 +02:00
c.py Genericise TI compiler and add MSP430 support 2022-02-02 16:45:05 +02:00
c_function_attributes.py compilers/c_function_attributes: add retain 2022-01-26 19:22:17 -05:00
compilers.py flake8: fix various whitespace errors with badly aligned code 2022-02-16 23:00:31 -05:00
cpp.py fix detection of language standard library paths 2022-03-16 09:24:57 -07:00
cs.py compilers: push the compiler id to a class variable 2022-01-10 15:53:26 -05:00
cuda.py flake8: fix wrong numbers of blank line separators 2022-02-16 18:19:13 -05:00
cython.py Add option to to transpile Cython to C++ 2021-09-24 22:56:46 +03:00
d.py compilers/d: fix mangling of rpath-link in DMD-like compilers 2022-03-01 18:34:58 -08:00
detect.py remove unused type ignore that mypy 0.940 no longer needs 2022-03-12 00:31:12 +02:00
fortran.py fix detection of language standard library paths 2022-03-16 09:24:57 -07:00
java.py compilers: push the compiler id to a class variable 2022-01-10 15:53:26 -05:00
objc.py objc/objcpp compiler: accept all gnu stds corresponding to c/c++ stds 2021-09-10 13:03:56 -07:00
objcpp.py fix various flake8 whitespace errors 2021-10-27 09:51:52 -04:00
rust.py compilers: push the compiler id to a class variable 2022-01-10 15:53:26 -05:00
swift.py compilers: push the compiler id to a class variable 2022-01-10 15:53:26 -05:00
vala.py compilers: push the compiler id to a class variable 2022-01-10 15:53:26 -05:00