compilers/cpp: Actually add the search dirs to for gcc

We calculate them, but then don't use them. Clang does use them, so this
looks like a simple oversight
pull/11924/head
Dylan Baker 1 year ago
parent 9a6a95483c
commit 59cfbf68e0
  1. 2
      mesonbuild/compilers/cpp.py

@ -442,7 +442,7 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler):
search_dirs: T.List[str] = []
for d in self.get_compiler_dirs(env, 'libraries'):
search_dirs.append(f'-L{d}')
return ['-lstdc++']
return search_dirs + ['-lstdc++']
class PGICPPCompiler(PGICompiler, CPPCompiler):

Loading…
Cancel
Save