diff options
author | Diana Picus <diana.picus@linaro.org> | 2021-08-17 14:07:39 +0200 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2021-08-17 14:18:21 +0200 |
commit | 3760b552ca3b921ad9692c40615b4cf15ea7574d (patch) | |
tree | 4fce497ec19ce72aed5feff72ccb579ff2c9556a | |
parent | 152ef428e4db70e15ddcdba95c984642eb9b8dbe (diff) |
Try to install clang-N
Change-Id: I58bbb159b44f0f7984e85c1cae9b3686eacfc7b8
-rwxr-xr-x | tcwg-llvm-common.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tcwg-llvm-common.sh b/tcwg-llvm-common.sh index f410efe6..41696c2b 100755 --- a/tcwg-llvm-common.sh +++ b/tcwg-llvm-common.sh @@ -69,6 +69,11 @@ set_compiler () { elif [ "$VAL" = "gcc" ]; then export CC="gcc" export CXX="g++" + elif [[ "$VAL" =~ "clang-[0-9]*" ]]; then + sudo apt update + sudo apt install -y "$VAL" + export CC="$VAL" + export CXX="${VAL/clang/clang++}" else echo "ERROR: Unknown compiler '$VAL'" exit 1 |