From 4fe3403584a8d029d316abd0af6037ec70c36d9e Mon Sep 17 00:00:00 2001 From: Stefan Seefeld Date: Sat, 1 Feb 2025 22:15:24 -0500 Subject: [PATCH] Make sure to pass C++ version to preprocessor as well. --- .github/workflows/test-osx.yml | 2 ++ .github/workflows/test-ubuntu.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test-osx.yml b/.github/workflows/test-osx.yml index bf2008d4d..2521c09a9 100644 --- a/.github/workflows/test-osx.yml +++ b/.github/workflows/test-osx.yml @@ -36,6 +36,7 @@ jobs: --builddir=build \ cxx.name=${{ matrix.cxx }} \ cxxflags=-std=${{ matrix.std }} \ + cppflags=-std=${{ matrix.std }} \ -j`sysctl -n hw.ncpu` - name: test run: | @@ -44,5 +45,6 @@ jobs: --builddir=build\ cxx.name=${{ matrix.cxx }} \ cxxflags=-std=${{ matrix.std }} \ + cppflags=-std=${{ matrix.std }} \ -j`sysctl -n hw.ncpu` \ test.report diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml index 9910232e8..74718b68a 100644 --- a/.github/workflows/test-ubuntu.yml +++ b/.github/workflows/test-ubuntu.yml @@ -39,6 +39,7 @@ jobs: --builddir=build \ cxx.name=${{ matrix.cxx }} \ cxxflags=-std=${{ matrix.std }} \ + cppflags=-std=${{ matrix.std }} \ -j`nproc` - name: test run: | @@ -47,5 +48,6 @@ jobs: --builddir=build \ cxx.name=${{ matrix.cxx }} \ cxxflags=-std=${{ matrix.std }} \ + cppflags=-std=${{ matrix.std }} \ -j`nproc` \ test.report