@@ -11,27 +11,35 @@ class LlvmOpenmp(CMakePackage):
11
11
an executable OpenMP program that are outside the compiler itself."""
12
12
13
13
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"
15
15
16
+ version ('14.0.6' , sha256 = '4f731ff202add030d9d68d4c6daabd91d3aeed9812e6a5b4968815cfdff0eb1f' )
16
17
version ('12.0.1' , sha256 = '60fe79440eaa9ebf583a6ea7f81501310388c02754dbe7dc210776014d06b091' )
17
18
version ('9.0.0' , sha256 = '9979eb1133066376cc0be29d1682bc0b0e7fb541075b391061679111ae4d3b5b' )
18
19
version ('8.0.0' , sha256 = 'f7b1705d2f16c4fc23d6531f67d2dd6fb78a077dd346b02fed64f4b8df65c9d5' )
19
20
21
+ depends_on (
'[email protected] :' ,
when = '@12:' ,
type = 'build' )
20
22
depends_on (
'[email protected] :' ,
type = 'build' )
21
23
22
24
variant ('multicompat' , default = False ,
23
25
description = "Support gomp and the Intel openMP runtime library." )
24
26
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
+
25
34
def url_for_version (self , version ):
26
35
if version >= Version ('9.0.1' ):
27
36
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-{0}/openmp-{0}.src.tar.xz"
28
37
else :
29
38
url = "https://releases.llvm.org/{0}/openmp-{0}.src.tar.xz"
30
39
31
- return url .format (version . dotted )
40
+ return url .format (version )
32
41
33
42
def cmake_args (self ):
34
-
35
43
# Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as
36
44
# libgomp alias which can conflict with GCC's libgomp.
37
45
cmake_args = [
0 commit comments