Skip to content

Commit

Permalink
Update compiler-common.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Apr 4, 2024
1 parent 455b92b commit 5275dcb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/jenkins/compiler-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@ if [ "$PKGOS" = "OSX" ]; then
#9.*|10.*)
# true;;
*)
if command -v clang-mp-15 >/dev/null 2>&1; then
if command -v clang-mp-17 >/dev/null 2>&1; then
CC=clang-mp-17
CXX="clang++-mp-17 -stdlib=libc++ -std=c++14"
CXX17="clang++-mp-17 -stdlib=libc++ -std=c++17"
elif command -v clang-mp-16 >/dev/null 2>&1; then
CC=clang-mp-16
CXX="clang++-mp-16 -stdlib=libc++ -std=c++14"
CXX17="clang++-mp-16 -stdlib=libc++ -std=c++17"
elif command -v clang-mp-15 >/dev/null 2>&1; then
CC=clang-mp-15
CXX="clang++-mp-15 -stdlib=libc++ -std=c++14"
CXX17="clang++-mp-15 -stdlib=libc++ -std=c++17"
Expand Down

0 comments on commit 5275dcb

Please sign in to comment.