Skip to content

Commit 5e87834

Browse files
committed
Install clang on 21.04 or later
Don't drop clang from 21.04 containers, that breaks existing scripts that use the 21.04 container for clang builds. Fixes: 7ddd70d ("Add Ubuntu 21.10 and use it in preference to 21.04")
1 parent 263242c commit 5e87834

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

build/ubuntu/packages.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ machine=$(uname -m)
66

77
. /etc/os-release
88

9-
if [[ "$VERSION_ID" == "21.10" ]]; then
10-
if [[ "$machine" != "x86_64" ]]; then
11-
PACKAGES+=" crossbuild-essential-amd64"
12-
fi
9+
major="${VERSION_ID%%.*}"
1310

11+
if [[ "$major" -ge 21 ]]; then
1412
PACKAGES+=" clang llvm"
1513
fi
1614

@@ -22,6 +20,11 @@ if [[ "$machine" == "ppc64le" ]]; then
2220
PACKAGES+=" libhugetlbfs-dev"
2321
PACKAGES+=" libmnl-dev"
2422
PACKAGES+=" libmount-dev"
23+
24+
# For the x86_64 container
25+
if [[ "$VERSION_ID" == "21.10" ]]; then
26+
PACKAGES+=" crossbuild-essential-amd64"
27+
fi
2528
else
2629
PACKAGES+=" gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu"
2730
fi

0 commit comments

Comments
 (0)