From 1616a9af338039b61320640bd2af507c5b776de7 Mon Sep 17 00:00:00 2001 From: Mat Cross Date: Sun, 22 Aug 2021 11:33:38 +0100 Subject: [PATCH] nagfor OpenMP recognition. --- mesonbuild/dependencies/misc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 5d0e88255..faf06a1a3 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -78,6 +78,12 @@ class OpenMPDependency(SystemDependency): language = kwargs.get('language') super().__init__('openmp', environment, kwargs, language=language) self.is_found = False + if self.clib_compiler.get_id() == 'nagfor': + # No macro defined for OpenMP, but OpenMP 3.1 is supported. + self.version = '3.1' + self.is_found = True + self.compile_args = self.link_args = self.clib_compiler.openmp_flags() + return if self.clib_compiler.get_id() == 'pgi': # through at least PGI 19.4, there is no macro defined for OpenMP, but OpenMP 3.1 is supported. self.version = '3.1'