diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2015-12-01 12:16:08 +0100 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2015-12-01 12:16:08 +0100 |
commit | a173ab1e3185e322406d0b7379ea77872fbe34c2 (patch) | |
tree | 1149d09bc48b985879a0745e670ee037c25aeca5 /var | |
parent | 1fe626ec7cd8b8a2bceb9e73dd9597d9f99813cf (diff) | |
download | spack-a173ab1e3185e322406d0b7379ea77872fbe34c2.tar.gz spack-a173ab1e3185e322406d0b7379ea77872fbe34c2.tar.bz2 spack-a173ab1e3185e322406d0b7379ea77872fbe34c2.tar.xz spack-a173ab1e3185e322406d0b7379ea77872fbe34c2.zip |
clang : default OpenMP is libomp
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/clang/package.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/packages/clang/package.py b/var/spack/packages/clang/package.py index d0869362f5..eac1863b97 100644 --- a/var/spack/packages/clang/package.py +++ b/var/spack/packages/clang/package.py @@ -50,9 +50,15 @@ class Clang(Package): env['CXXFLAGS'] = self.compiler.cxx11_flag with working_dir('spack-build', create=True): + + options = [] + if '@3.7.0:' in spec: + options.append('-DCLANG_DEFAULT_OPENMP_RUNTIME:STRING=libomp') + options.extend(std_cmake_args) + cmake('..', - '-DCLANG_PATH_TO_LLVM_BUILD=%s' % spec['llvm'].prefix, - '-DLLVM_MAIN_SRC_DIR=%s' % spec['llvm'].prefix, - *std_cmake_args) + '-DCLANG_PATH_TO_LLVM_BUILD:PATH=%s' % spec['llvm'].prefix, + '-DLLVM_MAIN_SRC_DIR:PATH=%s' % spec['llvm'].prefix, + *options) make() make("install") |