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:
Dylan Baker 2023-06-29 09:00:24 -07:00
parent 9a6a95483c
commit 59cfbf68e0
1 changed files with 1 additions and 1 deletions

View File

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