Skip to content

Commit

Permalink
compilers/cpp: remove special libc++ handling from the AppleClangCPPC…
Browse files Browse the repository at this point in the history
…ompiler

The base implementation handles this already, with the added bonuses of
caching, and having one less code path to test.
  • Loading branch information
dcbaker committed Jun 29, 2023
1 parent a227768 commit 9067139
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mesonbuild/compilers/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9067139

Please sign in to comment.