Skip to content

Commit 646cf16

Browse files
Support Amazon Linux 2 for SwiftWasm distribution
1 parent 5fea52c commit 646cf16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/webassembly/build-toolchain.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ case $(uname -s) in
1818
OS_SUFFIX=ubuntu18.04_$(uname -m)
1919
elif [ "$(grep RELEASE /etc/lsb-release)" == "DISTRIB_RELEASE=20.04" ]; then
2020
OS_SUFFIX=ubuntu20.04_$(uname -m)
21+
elif [[ "$(grep PRETTY_NAME /etc/os-release)" == 'PRETTY_NAME="Amazon Linux 2"' ]]; then
22+
OS_SUFFIX=amazonlinux2_$(uname -m)
2123
else
2224
echo "Unknown Ubuntu version"
2325
exit 1

0 commit comments

Comments
 (0)