Skip to content

Commit 3da0965

Browse files
authored
Merge pull request #3746 from Crivella/fix-deprecate_clang_eb
Deprecate the Clang Easyblock in favor of the LLVM one for newer (>=18.1.6) versions of LLVM
2 parents 0c3956b + 816d494 commit 3da0965

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

easybuild/easyblocks/c/clang.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ def __init__(self, *args, **kwargs):
120120
"""Initialize custom class variables for Clang."""
121121

122122
super().__init__(*args, **kwargs)
123+
124+
if LooseVersion(self.version) >= LooseVersion('18.1.6'):
125+
raise EasyBuildError(
126+
"The Clang EasyBlock has been deprecated and does not support LLVM versions >= 18.1.6. "
127+
"Please use the 'LLVM' EasyBlock instead, which supports building Clang as well "
128+
"as other LLVM projects."
129+
)
130+
123131
self.llvm_src_dir = None
124132
self.llvm_obj_dir_stage1 = None
125133
self.llvm_obj_dir_stage2 = None

0 commit comments

Comments
 (0)