From 6ee1f8729f33e5b88319d9510d697d21813c7459 Mon Sep 17 00:00:00 2001 From: Yu Shi Date: Tue, 19 Dec 2023 07:57:27 +0000 Subject: [PATCH] fix CXX and CC --- .ci/setup.sh | 2 +- .ci/test.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/setup.sh b/.ci/setup.sh index 29e037a37c14..bc17fee03308 100755 --- a/.ci/setup.sh +++ b/.ci/setup.sh @@ -122,7 +122,7 @@ else # Linux lsb-release \ software-properties-common if [[ $COMPILER == "clang" ]]; then - sudo apt-get install --no-install-recommends -y \ + apt-get install --no-install-recommends -y \ clang \ libomp-dev fi diff --git a/.ci/test.sh b/.ci/test.sh index 22c6531be150..472fd7d8c6e5 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -4,6 +4,9 @@ if [[ $OS_NAME == "macos" ]] && [[ $COMPILER == "gcc" ]]; then export CXX=g++-11 export CC=gcc-11 elif [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "clang" ]]; then + export CXX=clang++ + export CC=clang +elif [[ $OS_NAME == "linux" ]] && [[ $COMPILER == "clang-17" ]]; then export CXX=clang++-17 export CC=clang-17 fi