nagfor OpenMP recognition.

pull/9239/head
Mat Cross 3 years ago committed by Eli Schwartz
parent 85a5aed60f
commit 1616a9af33
  1. 6
      mesonbuild/dependencies/misc.py

@ -78,6 +78,12 @@ class OpenMPDependency(SystemDependency):
language = kwargs.get('language') language = kwargs.get('language')
super().__init__('openmp', environment, kwargs, language=language) super().__init__('openmp', environment, kwargs, language=language)
self.is_found = False 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': 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. # through at least PGI 19.4, there is no macro defined for OpenMP, but OpenMP 3.1 is supported.
self.version = '3.1' self.version = '3.1'

Loading…
Cancel
Save