From eaf54cfaf67de8c9c3dbd26c15240b2a90b3ef46 Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Tue, 1 Aug 2023 13:20:45 +0200 Subject: [PATCH] Patch llvm easyblock for v16 --- easybuild/easyblocks/l/llvm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/easybuild/easyblocks/l/llvm.py b/easybuild/easyblocks/l/llvm.py index c7f06d6b6e..b0f0dae719 100644 --- a/easybuild/easyblocks/l/llvm.py +++ b/easybuild/easyblocks/l/llvm.py @@ -112,5 +112,16 @@ def configure_step(self): change_dir(cwd) else: raise EasyBuildError("Failed to find unpacked CMake modules directory at %s", cmake_modules_path) + + if LooseVersion(self.version) >= LooseVersion('16.0'): + # make sure that third-party modules are available in build directory, + # and if so make a 'third-party' symlink so LLVM can find them + third_party_modules_path = os.path.join(self.builddir, 'third-party-%s.src' % self.version) + if os.path.exists(third_party_modules_path): + cwd = change_dir(self.builddir) + symlink('third-party-%s.src' % self.version, 'third-party') + change_dir(cwd) + else: + raise EasyBuildError("Failed to find unpacked 'third-party' modules directory at %s", third_party_modules_path) super(EB_LLVM, self).configure_step()