Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions easybuild/easyblocks/c/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def extra_options():
'bootstrap': [True, "Bootstrap Clang using GCC", CUSTOM],
'usepolly': [False, "Build Clang with polly", CUSTOM],
'build_lld': [False, "Build the LLVM lld linker", CUSTOM],
'build_lldb': [False, "Build the LLVM lldb debugger", CUSTOM],
'default_openmp_runtime': [None, "Default OpenMP runtime for clang (for example, 'libomp')", CUSTOM],
'enable_rtti': [False, "Enable Clang RTTI", CUSTOM],
'libcxx': [False, "Build the LLVM C++ standard library", CUSTOM],
Expand Down Expand Up @@ -123,6 +124,7 @@ def extract_step(self):
libcxx/ Unpack libcxx-*.tar.gz here
libcxxabi/ Unpack libcxxabi-*.tar.gz here
lld/ Unpack lld-*.tar.gz here
lldb/ Unpack lldb-*.tar.gz here
"""

# Extract everything into separate directories.
Expand Down Expand Up @@ -158,6 +160,9 @@ def find_source_dir(globpatterns, targetdir):
if self.cfg["build_lld"]:
find_source_dir('lld-*', os.path.join(self.llvm_src_dir, 'tools', 'lld'))

if self.cfg["build_lldb"]:
find_source_dir('lldb-*', os.path.join(self.llvm_src_dir, 'tools', 'lldb'))

if self.cfg["libcxx"]:
find_source_dir('libcxx-*', os.path.join(self.llvm_src_dir, 'projects', 'libcxx'))
find_source_dir('libcxxabi-*', os.path.join(self.llvm_src_dir, 'projects', 'libcxxabi'))
Expand Down Expand Up @@ -450,6 +455,9 @@ def sanity_check_step(self):
if self.cfg["build_lld"]:
custom_paths['files'].extend(["bin/lld"])

if self.cfg["build_lldb"]:
custom_paths['files'].extend(["bin/lldb"])

if self.cfg["libcxx"]:
custom_paths['files'].extend(["lib/libc++.%s" % shlib_ext])
custom_paths['files'].extend(["lib/libc++abi.%s" % shlib_ext])
Expand Down