Skip to content
Snippets Groups Projects
Unverified Commit c0342e41 authored by Jim Galarowicz's avatar Jim Galarowicz Committed by GitHub
Browse files

Update the change to add gomp compatibity to llvm-openmp. (#17400)


* Update the change to add gomp compatibity to llvm-openmp.

* Update the change to add gomp compatibity to llvm-openmp using append instead of extend.

* Fix flake8 issue.

Co-authored-by: default avatarJim Galarowicz <jgalarowicz@newmexicoconsortium.org>
parent 83982656
No related branches found
No related tags found
No related merge requests found
...@@ -18,10 +18,20 @@ class LlvmOpenmp(CMakePackage): ...@@ -18,10 +18,20 @@ class LlvmOpenmp(CMakePackage):
depends_on('cmake@2.8:', type='build') depends_on('cmake@2.8:', type='build')
variant('multicompat', default=False,
description="Support gomp and the Intel openMP runtime library.")
def cmake_args(self): def cmake_args(self):
# Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as # Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as
# libgomp alias which can conflict with GCC's libgomp. # libgomp alias which can conflict with GCC's libgomp.
return ['-DLIBOMP_INSTALL_ALIASES=OFF'] cmake_args = [
'-DLIBOMP_INSTALL_ALIASES=OFF'
]
# Add optional support for both Intel and gcc compilers
if self.spec.satisfies('+multicompat'):
cmake_args.append('-DKMP_GOMP_COMPAT=1')
return cmake_args
@property @property
def libs(self): def libs(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment