Skip to content

Commit

Permalink
clang_aomp: Make list of PROJECTS/RUNTIMES to easy transition between…
Browse files Browse the repository at this point in the history
… them later
  • Loading branch information
akesandgren committed Jan 19, 2024
1 parent cb6317a commit bfaed7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions easybuild/easyblocks/c/clang_aomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,12 @@ def _configure_llvm(self, component):
# dependency and interrupts building of LLVM
component['prebuildopts'] = "unset CPATH && "

projects = ['clang', 'lld', 'clang-tools-extra', 'compiler-rt']
runtimes = ['libcxx', 'libcxxabi']
# Setup configuration options for LLVM
component['configopts'] = ' '.join([
"-DLLVM_ENABLE_PROJECTS='clang;lld;clang-tools-extra'",
"-DLLVM_ENABLE_RUNTIMES='compiler-rt;libcxx;libcxxabi'",
"-DLLVM_ENABLE_PROJECTS='%s'" % ';'.join(projects),
"-DLLVM_ENABLE_RUNTIMES='%s'" % ';'.join(runtimes),
"-DCLANG_DEFAULT_LINKER=lld",
"-DGCC_INSTALL_PREFIX=%s" % os.getenv('EBROOTGCC', os.getenv('EBROOTGCCCORE')),
"-DLLVM_ENABLE_ASSERTIONS=ON",
Expand Down

0 comments on commit bfaed7f

Please sign in to comment.