diff options
-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 |