Skip to content

Commit 4fe3403

Browse files
committed
Make sure to pass C++ version to preprocessor as well.
1 parent b1b43f1 commit 4fe3403

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/test-osx.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
--builddir=build \
3737
cxx.name=${{ matrix.cxx }} \
3838
cxxflags=-std=${{ matrix.std }} \
39+
cppflags=-std=${{ matrix.std }} \
3940
-j`sysctl -n hw.ncpu`
4041
- name: test
4142
run: |
@@ -44,5 +45,6 @@ jobs:
4445
--builddir=build\
4546
cxx.name=${{ matrix.cxx }} \
4647
cxxflags=-std=${{ matrix.std }} \
48+
cppflags=-std=${{ matrix.std }} \
4749
-j`sysctl -n hw.ncpu` \
4850
test.report

.github/workflows/test-ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
--builddir=build \
4040
cxx.name=${{ matrix.cxx }} \
4141
cxxflags=-std=${{ matrix.std }} \
42+
cppflags=-std=${{ matrix.std }} \
4243
-j`nproc`
4344
- name: test
4445
run: |
@@ -47,5 +48,6 @@ jobs:
4748
--builddir=build \
4849
cxx.name=${{ matrix.cxx }} \
4950
cxxflags=-std=${{ matrix.std }} \
51+
cppflags=-std=${{ matrix.std }} \
5052
-j`nproc` \
5153
test.report

0 commit comments

Comments
 (0)