Skip to content

Commit

Permalink
Support Pop!_OS 20.04 (#62)
Browse files Browse the repository at this point in the history
Pop!_OS is a derivative of Ubuntu, so behaves similarly.

Also, fix undefined name.
  • Loading branch information
yagehu authored Oct 9, 2020
1 parent e3de4f3 commit 9b0bae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolchain/tools/llvm_release_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _linux(llvm_version):

if distname not in _known_distros:
for distro in info["ID_LIKE"].strip('\"').split(' '):
if distro in known_distros:
if distro in _known_distros:
distname = distro
break

Expand All @@ -83,7 +83,7 @@ def _linux(llvm_version):
os_name = "linux-gnu-ubuntu-18.04"
elif (distname == "ubuntu" and version.startswith("18.04")) or (distname == "linuxmint" and version.startswith("19")):
os_name = "linux-gnu-ubuntu-18.04"
elif (distname == "ubuntu" and version.startswith("20")):
elif (distname == "ubuntu" and version.startswith("20")) or (distname == "pop" and version.startswith("20")):
# use ubuntu 18.04 clang LLVM release for ubuntu 20.04
os_name = "linux-gnu-ubuntu-18.04"
elif distname in ["arch", "ubuntu", "manjaro"] or (distname == "linuxmint" and version.startswith("18")):
Expand Down

0 comments on commit 9b0bae6

Please sign in to comment.