aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-06-29 09:43:07 -0700
committerDylan Baker <dylan@pnwbakers.com>2023-06-29 13:36:47 -0700
commit9067139acb5f133e08ed15eba8a6d41246200b5b (patch)
treed0c8a665939f5f528d8fadd8360e3a24a9c62e84
parenta227768b378caa7a5f9faf42936bdad8cd6123dd (diff)
downloadmeson-9067139acb5f133e08ed15eba8a6d41246200b5b.zip
meson-9067139acb5f133e08ed15eba8a6d41246200b5b.tar.gz
meson-9067139acb5f133e08ed15eba8a6d41246200b5b.tar.bz2
compilers/cpp: remove special libc++ handling from the AppleClangCPPCompiler
The base implementation handles this already, with the added bonuses of caching, and having one less code path to test.
-rw-r--r--mesonbuild/compilers/cpp.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 081f656..2605670 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -297,13 +297,7 @@ class ArmLtdClangCPPCompiler(ClangCPPCompiler):
class AppleClangCPPCompiler(ClangCPPCompiler):
- def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]:
- # We need to apply the search prefix here, as these link arguments may
- # be passed to a different compiler with a different set of default
- # search paths, such as when using Clang for C/C++ and gfortran for
- # fortran,
- search_dirs = [f'-L{d}' for d in self.get_compiler_dirs(env, 'libraries')]
- return search_dirs + ['-lc++']
+ pass
class EmscriptenCPPCompiler(EmscriptenMixin, ClangCPPCompiler):