Skip to content
Merged
Changes from 2 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 @@ -120,6 +120,14 @@ def __init__(self, *args, **kwargs):
"""Initialize custom class variables for Clang."""

super().__init__(*args, **kwargs)

if LooseVersion(self.version) >= LooseVersion('19'):
raise EasyBuildError(
"The Clang EasyBlock has been deprecated and does not support LLVM versions >= 19. "
"Please use the 'LLVM' EasyBlock instead, which supports building Clang as well"
"as other LLVM projects."
)

self.llvm_src_dir = None
self.llvm_obj_dir_stage1 = None
self.llvm_obj_dir_stage2 = None
Expand Down