llvm-openmp: add v14.0.6 (#31440)

This commit is contained in:
Adam J. Stewart 2022-07-05 17:11:00 -07:00 committed by GitHub
parent 12fb842bea
commit 30e5828f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,27 +11,35 @@ class LlvmOpenmp(CMakePackage):
an executable OpenMP program that are outside the compiler itself."""
homepage = "https://openmp.llvm.org/"
url = "https://releases.llvm.org/9.0.0/openmp-9.0.0.src.tar.xz"
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/openmp-14.0.6.src.tar.xz"
version('14.0.6', sha256='4f731ff202add030d9d68d4c6daabd91d3aeed9812e6a5b4968815cfdff0eb1f')
version('12.0.1', sha256='60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091')
version('9.0.0', sha256='9979eb1133066376cc0be29d1682bc0b0e7fb541075b391061679111ae4d3b5b')
version('8.0.0', sha256='f7b1705d2f16c4fc23d6531f67d2dd6fb78a077dd346b02fed64f4b8df65c9d5')
depends_on('cmake@3.13.4:', when='@12:', type='build')
depends_on('cmake@2.8:', type='build')
variant('multicompat', default=False,
description="Support gomp and the Intel openMP runtime library.")
@property
def root_cmakelists_dir(self):
if self.spec.satisfies('@14:'):
return 'openmp-{}.src'.format(self.version)
else:
return '.'
def url_for_version(self, version):
if version >= Version('9.0.1'):
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-{0}/openmp-{0}.src.tar.xz"
else:
url = "https://releases.llvm.org/{0}/openmp-{0}.src.tar.xz"
return url.format(version.dotted)
return url.format(version)
def cmake_args(self):
# Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as
# libgomp alias which can conflict with GCC's libgomp.
cmake_args = [