Skip to content

Commit 2dc6ba0

Browse files
authored
Add support for AlmaLinux (#281)
Co-authored-by: Steven Casagrande <steven.casagrande@ibm.com>
1 parent c3e57e7 commit 2dc6ba0

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

toolchain/internal/common.bzl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,22 @@ def host_os_key(rctx):
3434
else:
3535
return "%s-%s-%s" % (os, version, arch)
3636

37-
_known_distros = ["freebsd", "suse", "ubuntu", "arch", "manjaro", "debian", "fedora", "centos", "amzn", "raspbian", "pop", "rhel", "ol"]
37+
_known_distros = [
38+
"freebsd",
39+
"suse",
40+
"ubuntu",
41+
"arch",
42+
"manjaro",
43+
"debian",
44+
"fedora",
45+
"centos",
46+
"amzn",
47+
"raspbian",
48+
"pop",
49+
"rhel",
50+
"ol",
51+
"almalinux",
52+
]
3853

3954
def _linux_dist(rctx):
4055
info = {}

toolchain/internal/release_name.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _linux(llvm_version, distname, version, arch):
137137
elif distname == "raspbian":
138138
arch = "armv7a"
139139
os_name = "linux-gnueabihf"
140-
elif distname in ["rhel", "ol"]:
140+
elif distname in ["rhel", "ol", "almalinux"]:
141141
if 8 <= float(version) and float(version) < 9:
142142
os_name = _ubuntu_osname(arch, "18.04", major_llvm_version, llvm_version)
143143
elif float(version) >= 9:

0 commit comments

Comments
 (0)