From 0541e664382ab9564ef561be3474948306a4b6de Mon Sep 17 00:00:00 2001 From: Benedek Thaler Date: Tue, 6 Feb 2024 09:31:35 +0100 Subject: [PATCH] Fix CI: use libc++ on linux with clang Workarounds https://github.com/actions/runner-images/issues/8659 --- .github/workflows/on_pull_request.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml index c733161..17d6f0b 100644 --- a/.github/workflows/on_pull_request.yml +++ b/.github/workflows/on_pull_request.yml @@ -106,7 +106,7 @@ jobs: - uses: actions/checkout@v2 - name: Install Dependencies run: | - sudo apt install -y clang lld + sudo apt install -y clang lld "libc++-dev" - name: Configure run: | set -x @@ -114,6 +114,8 @@ jobs: cd Clang export CC=$(which clang) export CXX=$(which clang++) + export CXXFLAGS=$(-stdlib=libc++) + export LDFLAGS=$(-stdlib=libc++) cmake -DCMAKE_CXX_STANDARD=20 .. - name: Build run: |