Skip to content

Commit 94a4975

Browse files
committed
release_names: some cleanup and a fix
1 parent eb2ef33 commit 94a4975

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

toolchain/tools/llvm_release_name.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,26 @@ def _linux(llvm_version):
7777
os_name = "linux-sles%s" % version
7878
elif distname == "ubuntu" and version.startswith("14.04"):
7979
os_name = "linux-gnu-ubuntu-14.04"
80-
elif (distname == "ubuntu" and version.startswith("20.04")) or (distname == "linuxmint" and version.startswith("20")):
80+
elif ((distname == "ubuntu" and version.startswith("20.04")) or
81+
(distname == "linuxmint" and version.startswith("20")) or
82+
(distname == "pop" and version.startswith("20"))):
8183
if major_llvm_version < 11:
8284
# There is no binary packages specifically for 20.04, but those for 18.04 works on
8385
# 20.04
8486
os_name = "linux-gnu-ubuntu-18.04"
8587
else:
8688
# release 11.0.0 started providing packaging for ubuntu 20
8789
os_name = "linux-gnu-ubuntu-20.04"
88-
elif (distname == "ubuntu" and version.startswith("18.04")) or (distname == "linuxmint" and version.startswith("19")):
90+
elif ((distname == "ubuntu" and version.startswith("18.04")) or
91+
(distname == "linuxmint" and version.startswith("19")) or
92+
(distname == "debian" and (version is None or int(version) == 10))):
8993
if major_llvm_version > 10:
9094
# LLVM seems to have stopped providing binary packages for ubuntu 18.04.
9195
os_name = "linux-gnu-ubuntu-16.04"
9296
else:
9397
os_name = "linux-gnu-ubuntu-18.04"
94-
95-
elif (distname == "ubuntu" and version.startswith("20")) or (distname == "pop" and version.startswith("20")):
96-
# use ubuntu 18.04 clang LLVM release for ubuntu 20.04
97-
os_name = "linux-gnu-ubuntu-18.04"
9898
elif distname in ["ubuntu", "manjaro"] or (distname == "linuxmint" and version.startswith("18")):
9999
os_name = "linux-gnu-ubuntu-16.04"
100-
elif distname == "debian" and (version is None or int(version) == 10):
101-
os_name = "linux-gnu-ubuntu-18.04"
102100
elif distname == "debian" and int(version) == 9 and major_llvm_version >= 7:
103101
os_name = "linux-gnu-ubuntu-16.04"
104102
elif distname == "debian" and int(version) == 8 and major_llvm_version < 7:

0 commit comments

Comments
 (0)