Skip to content

ci: re-add clang-17 to the cpu matrix (scoped OpenMP runtime) - #18

Merged
nikbott merged 1 commit into
devfrom
fix/clang-cpp20-compat
Jul 7, 2026
Merged

ci: re-add clang-17 to the cpu matrix (scoped OpenMP runtime)#18
nikbott merged 1 commit into
devfrom
fix/clang-cpp20-compat

Conversation

@nikbott

@nikbott nikbott commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Restores two-compiler (gcc + clang) CPU coverage in CI. Closes #15.

Root cause

clang-17 was dropped in 6bc79a9 under the theory of a C++20 source incompatibility, but the drop commit itself records the real cause: the shared apt-get install line carried libomp-17-dev for every matrix job, so when that package failed to resolve the install step died in all jobs — including gcc — reddening the whole matrix. Local clang syntax-checks of the omp/ sources compile clean, corroborating that the source was never the problem.

Fix

  • Re-add { cc: clang-17, cxx: clang++-17 } to the cpu matrix.
  • Move clang's LLVM OpenMP runtime into a clang-only step (if: startsWith(matrix.compiler.cc, 'clang')) installing clang-17 libomp-17-dev, so a clang-specific package can never block the gcc jobs again. libomp-17-dev (1:17.0.6) is available on noble.

Verification

This PR's own CI is the verification: clang-17 Debug+Release must configure (FindOpenMP), build, and pass ctest, with gcc-13 jobs still green.

clang-17 was dropped (6bc79a9) because the shared apt-get install line
carried libomp-17-dev for every matrix job; when that package failed to
resolve, the install step died in all jobs (including gcc), reddening the
whole matrix. The failure was packaging, not a C++20 source divergence.

Re-add clang-17 and move its LLVM OpenMP runtime into a clang-only step
(if: startsWith(matrix.compiler.cc, 'clang')) so a clang-specific package
can never block the gcc jobs again.

Closes #15.
@nikbott
nikbott force-pushed the fix/clang-cpp20-compat branch from 654de94 to 9421bbb Compare July 7, 2026 09:23
@nikbott
nikbott merged commit d2f7ac3 into dev Jul 7, 2026
9 checks passed
@nikbott
nikbott deleted the fix/clang-cpp20-compat branch July 7, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: re-add clang-17 to the cpu matrix (OpenMP toolchain)

1 participant