clang : default OpenMP is libomp
This commit is contained in:
parent
1fe626ec7c
commit
a173ab1e31
1 changed files with 9 additions and 3 deletions
|
@ -50,9 +50,15 @@ def install(self, spec, prefix):
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue