aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/misc.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-11-30 12:40:20 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-12-03 10:06:11 +0530
commit133df3b045c8b70b2750fac5961dc85cea2e19b2 (patch)
treed86912f00ec14545ba1ef2887886cff741cef281 /mesonbuild/dependencies/misc.py
parentb2feae98339556eb053d3493bc925f3ceb30ec3b (diff)
downloadmeson-133df3b045c8b70b2750fac5961dc85cea2e19b2.zip
meson-133df3b045c8b70b2750fac5961dc85cea2e19b2.tar.gz
meson-133df3b045c8b70b2750fac5961dc85cea2e19b2.tar.bz2
dependencies: Pass language to PkgConfigDependency
Also try harder to find a compiler that dependencies can use. This means that in C++-only projects we will use the C++ compiler for compiler checks, which can be important.
Diffstat (limited to 'mesonbuild/dependencies/misc.py')
-rw-r--r--mesonbuild/dependencies/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py
index 41666a3..5bd9d93 100644
--- a/mesonbuild/dependencies/misc.py
+++ b/mesonbuild/dependencies/misc.py
@@ -408,7 +408,7 @@ class MPIDependency(ExternalDependency):
for pkg in pkgconfig_files:
try:
- pkgdep = PkgConfigDependency(pkg, environment, kwargs)
+ pkgdep = PkgConfigDependency(pkg, environment, kwargs, language=self.language)
if pkgdep.found():
self.compile_args = pkgdep.get_compile_args()
self.link_args = pkgdep.get_link_args()