Skip to content

Commit 68082e6

Browse files
committed
CI: use libc++ for Clang 3.5 to 4.0
The fixes the error: "__STRICT_ANSI__ seems to have been undefined; this is not supported" with Clang 3.9
1 parent 36bcc7b commit 68082e6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,17 @@ jobs:
7373
matrix:
7474
include:
7575
- clang: "3.5"
76+
cxxflags: "-stdlib=libc++"
7677
- clang: "3.6"
78+
cxxflags: "-stdlib=libc++"
7779
- clang: "3.7"
80+
cxxflags: "-stdlib=libc++"
7881
- clang: "3.8"
82+
cxxflags: "-stdlib=libc++"
7983
- clang: "3.9"
84+
cxxflags: "-stdlib=libc++"
8085
- clang: "4.0"
86+
cxxflags: "-stdlib=libc++"
8187
- clang: "5.0"
8288
- clang: "6.0"
8389
- clang: "7"
@@ -105,7 +111,9 @@ jobs:
105111
env:
106112
CC: clang-${{ matrix.clang }}
107113
CXX: clang++-${{ matrix.clang }}
108-
CXXFLAGS: ${{ matrix.cxxflags }}
114+
CXXFLAGS: >-
115+
${{ matrix.cxxflags }}
116+
${{ contains(matrix.cxxflags, 'libc++') && '-I/usr/lib/llvm-10/include/c++/v1/' || '' }}
109117
- name: Build
110118
run: cmake --build .
111119
- name: Test

0 commit comments

Comments
 (0)