Skip to content

Commit

Permalink
Add support for Void Linux (bazel-contrib#4)
Browse files Browse the repository at this point in the history
* add void

* try this version

* whoops

---------

Co-authored-by: Getty Ritter <[email protected]>
  • Loading branch information
aisamanra and Getty Ritter authored Feb 3, 2024
1 parent 4124470 commit 5c23c6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toolchain/tools/llvm_release_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import platform
import sys

_known_distros = ["freebsd", "suse", "ubuntu", "arch", "manjaro", "debian", "fedora", "centos"]
_known_distros = ["freebsd", "suse", "ubuntu", "arch", "manjaro", "debian", "fedora", "centos", "void"]

def _major_llvm_version(llvm_version):
return int(llvm_version.split(".")[0])
Expand Down Expand Up @@ -109,6 +109,8 @@ def _linux(llvm_version):
os_name = "linux-gnu-ubuntu-18.04"
elif distname == "amzn" and major_llvm_version >= 7:
os_name = "linux-gnu-ubuntu-18.04"
elif distname == "void" and major_llvm_version >= 7:
os_name = "linux-gnu-ubuntu-20.04"
else:
sys.exit("Unsupported linux distribution and version: %s, %s" % (distname, version))

Expand Down

0 comments on commit 5c23c6f

Please sign in to comment.