Skip to content

Commit a6b0ecd

Browse files
committed
Hopefully fix CI problems
1 parent 32863a1 commit a6b0ecd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ jobs:
3939
echo "CXX=$(brew --prefix llvm@20)/bin/clang++" >> $GITHUB_ENV
4040
if: ${{ matrix.compiler == 'llvm-20' && (matrix.os == 'macos-14' || matrix.os == 'macos-15') }}
4141

42-
- name: Use LLVM and Clang
42+
- name: Install LLVM and Clang (Ubuntu)
4343
run: |
44+
wget https://apt.llvm.org/llvm.sh
45+
chmod +x llvm.sh
46+
sudo ./llvm.sh 20
4447
echo "CC=clang-20" >> $GITHUB_ENV
4548
echo "CXX=clang++-20" >> $GITHUB_ENV
46-
if: ${{ matrix.compiler == 'llvm-20' && (matrix.os != 'macos-14' && matrix.os != 'macos-15') }}
49+
if: ${{ matrix.compiler == 'llvm-20' && matrix.os == 'ubuntu-latest' }}
4750

4851
- name: Use GCC
4952
run: |

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
4444
target_compile_options(c++spec INTERFACE -Wno-missing-template-arg-list-after-template-kw -Wno-dollar-in-identifier-extension)
4545
endif()
4646

47+
if(APPLE)
48+
target_compile_definitions(c++spec INTERFACE _LIBCPP_DISABLE_AVAILABILITY_ANNOTATIONS=1)
49+
endif()
50+
4751
FILE(GLOB_RECURSE c++spec_headers ${CMAKE_CURRENT_LIST_DIR}/include/*.hpp)
4852

4953
option(CPPSPEC_PRECOMPILE_HEADERS "Precompile the C++Spec headers")

0 commit comments

Comments
 (0)