Skip to content

Commit

Permalink
fix CXX and CC
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyu1994 committed Dec 19, 2023
1 parent 7497b00 commit 6ee1f87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ee1f87

Please sign in to comment.