diff options
-rwxr-xr-x[-rw-r--r--] | var/spack/repos/builtin/packages/llvm-openmp/package.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/llvm-openmp/package.py b/var/spack/repos/builtin/packages/llvm-openmp/package.py index 166b0c7a6e..831a32f745 100644..100755 --- a/var/spack/repos/builtin/packages/llvm-openmp/package.py +++ b/var/spack/repos/builtin/packages/llvm-openmp/package.py @@ -18,10 +18,20 @@ class LlvmOpenmp(CMakePackage): depends_on('cmake@2.8:', type='build') + variant('multicompat', default=False, + description="Support gomp and the Intel openMP runtime library.") + def cmake_args(self): + # Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as # 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 def libs(self): |