aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-17 21:39:13 +0300
committerGitHub <noreply@github.com>2018-04-17 21:39:13 +0300
commit88ca3805e74e67d81499bcf02362d8935dd8ec7a (patch)
tree29bd531405a41e29ccabb9a3fb7c416b4ba3a977 /mesonbuild/backend/ninjabackend.py
parent348248f0a19bdc80e8a184befb2faaa1d5e66f40 (diff)
parent46ccbe48e7dc902f699d0554055f89c49df4d415 (diff)
downloadmeson-88ca3805e74e67d81499bcf02362d8935dd8ec7a.zip
meson-88ca3805e74e67d81499bcf02362d8935dd8ec7a.tar.gz
meson-88ca3805e74e67d81499bcf02362d8935dd8ec7a.tar.bz2
Merge pull request #1852 from QuLogic/openmp
Add an OpenMP dependency.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 466a677..bc3a8ef 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2551,6 +2551,8 @@ rule FORTRAN_DEP_HACK
for d in target.external_deps:
if d.need_threads():
commands += linker.thread_link_flags(self.environment)
+ elif d.need_openmp():
+ commands += linker.openmp_flags()
# Only non-static built targets need link args and link dependencies
if not isinstance(target, build.StaticLibrary):
commands += target.link_args