Skip to content

Commit 30e5828

Browse files
authored
llvm-openmp: add v14.0.6 (spack#31440)
1 parent 12fb842 commit 30e5828

File tree

1 file changed

+11
-3
lines changed
  • var/spack/repos/builtin/packages/llvm-openmp

1 file changed

+11
-3
lines changed

var/spack/repos/builtin/packages/llvm-openmp/package.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,35 @@ class LlvmOpenmp(CMakePackage):
1111
an executable OpenMP program that are outside the compiler itself."""
1212

1313
homepage = "https://openmp.llvm.org/"
14-
url = "https://releases.llvm.org/9.0.0/openmp-9.0.0.src.tar.xz"
14+
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/openmp-14.0.6.src.tar.xz"
1515

16+
version('14.0.6', sha256='4f731ff202add030d9d68d4c6daabd91d3aeed9812e6a5b4968815cfdff0eb1f')
1617
version('12.0.1', sha256='60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091')
1718
version('9.0.0', sha256='9979eb1133066376cc0be29d1682bc0b0e7fb541075b391061679111ae4d3b5b')
1819
version('8.0.0', sha256='f7b1705d2f16c4fc23d6531f67d2dd6fb78a077dd346b02fed64f4b8df65c9d5')
1920

21+
depends_on('[email protected]:', when='@12:', type='build')
2022
depends_on('[email protected]:', type='build')
2123

2224
variant('multicompat', default=False,
2325
description="Support gomp and the Intel openMP runtime library.")
2426

27+
@property
28+
def root_cmakelists_dir(self):
29+
if self.spec.satisfies('@14:'):
30+
return 'openmp-{}.src'.format(self.version)
31+
else:
32+
return '.'
33+
2534
def url_for_version(self, version):
2635
if version >= Version('9.0.1'):
2736
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-{0}/openmp-{0}.src.tar.xz"
2837
else:
2938
url = "https://releases.llvm.org/{0}/openmp-{0}.src.tar.xz"
3039

31-
return url.format(version.dotted)
40+
return url.format(version)
3241

3342
def cmake_args(self):
34-
3543
# Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as
3644
# libgomp alias which can conflict with GCC's libgomp.
3745
cmake_args = [

0 commit comments

Comments
 (0)