aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-06-29 09:00:24 -0700
committerDylan Baker <dylan@pnwbakers.com>2023-06-29 11:56:08 -0700
commit59cfbf68e00aa774a9868101f423bd662938c15d (patch)
tree11b0db9a45cfa344943572f613b66bf099e159aa
parent9a6a95483c4d3c4f91824f1a7e52fc781e111043 (diff)
downloadmeson-59cfbf68e00aa774a9868101f423bd662938c15d.zip
meson-59cfbf68e00aa774a9868101f423bd662938c15d.tar.gz
meson-59cfbf68e00aa774a9868101f423bd662938c15d.tar.bz2
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
-rw-r--r--mesonbuild/compilers/cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 3f8bf00..16e337b 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/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):