Skip to content

Commit dbac49c

Browse files
committed
Use a different fix
1 parent b5d754f commit dbac49c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.clang-tidy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Checks: [
1212
-readability-magic-numbers,
1313
]
1414

15-
ExtraArgs: [--gcc-install-dir=/usr/lib/gcc/x86_64-linux-gnu/15]
16-
1715
CheckOptions:
1816
misc-include-cleaner.IgnoreHeaders: bits/chrono.h
1917
readability-function-cognitive-complexity.IgnoreMacros: true

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
2222
ROS_REPO: ${{ matrix.ROS_REPO }}
2323
CMAKE_ARGS: ${{ matrix.ROS_DISTRO == 'rolling' && '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DENABLE_CLANG_TIDY=ON' || '' }}
24+
# gcc-16 is installed on the rolling image alongside gcc-15 but without its
25+
# libstdc++ headers, so clang-tidy (which auto-selects the newest GCC found)
26+
# fails with "'chrono'/'string'/'memory' file not found". Installing
27+
# libstdc++-16-dev fixes this.
28+
ADDITIONAL_DEBS: ${{ matrix.ROS_DISTRO == 'rolling' && 'libstdc++-16-dev' || '' }}
2429
steps:
2530
- name: Checkout repo
2631
uses: actions/checkout@v4

0 commit comments

Comments
 (0)