Skip to content

Commit

Permalink
Patch llvm easyblock for v16
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-masterov committed Aug 1, 2023
1 parent 2ecd3c9 commit eaf54cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions easybuild/easyblocks/l/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit eaf54cf

Please sign in to comment.