From dbb025a175f31dfb1c8bb3a1e3bb7030e2625329 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 7 Apr 2018 04:06:29 -0400 Subject: Add an OpenMP dependency. This works similarly to the thread dependency which stores the various inconsistent flags in each compiler. --- mesonbuild/backend/backends.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild/backend/backends.py') diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 916f680..694700e 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -540,6 +540,8 @@ class Backend: # pkg-config puts the thread flags itself via `Cflags:` if dep.need_threads(): commands += compiler.thread_flags(self.environment) + elif dep.need_openmp(): + commands += compiler.openmp_flags() # Fortran requires extra include directives. if compiler.language == 'fortran': for lt in target.link_targets: -- cgit v1.1