Skip to content

Commit

Permalink
If the CI run-tests script finds Apple Clang 15 try and switch to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetarpmedia committed Feb 7, 2024
1 parent 77feead commit 4761200
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion regression-tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,15 @@ if [[ "$cxx_compiler" == *"cl.exe"* ]]; then
compiler_version=$(cl.exe)
else
compiler_cmd="$cxx_compiler -I../../../include -std=c++20 -pthread -o "

compiler_version=$("$cxx_compiler" --version)

# We don't currently support Apple Clang 15 so try and switch to 14
if [[ "$compiler_version" == *"Apple clang version 15.0"* ]]; then
printf "Found Apple Clang 15, attempting to switch to Apple Clang 14"
cxx_compiler=$(xcodebuild -find clang++)
compiler_version=$("$cxx_compiler" --version)
fi

if [[ "$compiler_version" == *"Apple clang version 14.0"* ]]; then
exec_out_dir="$expected_results_dir/apple-clang-14"
elif [[ "$compiler_version" == *"clang version 12.0"* ]]; then
Expand Down

0 comments on commit 4761200

Please sign in to comment.