mirror of
https://github.com/mat007/turtle.git
synced 2026-08-21 21:19:47 +00:00
Silence c2y-extensions warning
Triggered by use of `__COUNTER__` in Boost.Test
This commit is contained in:
parent
e88fa7db49
commit
df41ca9b84
1 changed files with 10 additions and 2 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -58,8 +58,8 @@ jobs:
|
||||||
- { compiler: clang-19, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-24.04 }
|
- { compiler: clang-19, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-24.04 }
|
||||||
- { compiler: clang-20, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-24.04 }
|
- { compiler: clang-20, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-24.04 }
|
||||||
- { compiler: clang-21, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04 }
|
- { compiler: clang-21, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04 }
|
||||||
- { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04 }
|
- { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04, cxxflags: '-Wno-c2y-extensions' }
|
||||||
- { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: master, os: ubuntu-26.04 }
|
- { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: master, os: ubuntu-26.04, cxxflags: '-Wno-c2y-extensions' }
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
- { toolset: gcc, os: windows-2022, cxxstd: 17, generator: 'MinGW Makefiles' }
|
- { toolset: gcc, os: windows-2022, cxxstd: 17, generator: 'MinGW Makefiles' }
|
||||||
|
|
@ -73,6 +73,8 @@ jobs:
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
container: ${{matrix.container}}
|
container: ${{matrix.container}}
|
||||||
|
env:
|
||||||
|
B2_CXXFLAGS: ${{matrix.cxxflags}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare container environment
|
- name: Prepare container environment
|
||||||
|
|
@ -139,6 +141,9 @@ jobs:
|
||||||
if [[ "${{matrix.coverage}}" == "yes" ]]; then
|
if [[ "${{matrix.coverage}}" == "yes" ]]; then
|
||||||
B2_FLAGS+=" cxxflags=--coverage linkflags=--coverage"
|
B2_FLAGS+=" cxxflags=--coverage linkflags=--coverage"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n $B2_CXXFLAGS ]]; then
|
||||||
|
B2_FLAGS+=" cxxflags='$B2_CXXFLAGS'"
|
||||||
|
fi
|
||||||
echo "B2_FLAGS=$B2_FLAGS" >> $GITHUB_ENV
|
echo "B2_FLAGS=$B2_FLAGS" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Move the Boost root to a sibling folder
|
# Move the Boost root to a sibling folder
|
||||||
|
|
@ -211,6 +216,9 @@ jobs:
|
||||||
if [[ "${{matrix.generator}}" == "MinGW"* ]]; then
|
if [[ "${{matrix.generator}}" == "MinGW"* ]]; then
|
||||||
extra_args+=(-DCMAKE_CXX_FLAGS="-Wa,-mbig-obj")
|
extra_args+=(-DCMAKE_CXX_FLAGS="-Wa,-mbig-obj")
|
||||||
fi
|
fi
|
||||||
|
if [[ -n $B2_CXXFLAGS ]]; then
|
||||||
|
extra_args+=(-DCMAKE_CXX_FLAGS="$B2_CXXFLAGS")
|
||||||
|
fi
|
||||||
|
|
||||||
CXX_STD=${CXX_STD##*,} # Extract last value
|
CXX_STD=${CXX_STD##*,} # Extract last value
|
||||||
case "$CXX_STD" in
|
case "$CXX_STD" in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue