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
This commit is contained in:
parent
9a6a95483c
commit
59cfbf68e0
|
@ -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…
Reference in New Issue