mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-03 19:21:29 -06:00
Compilers in the clangx86trunk group that set their own `options` (e.g.
`-stdlib=libc++`) silently override the group-level `options` property,
which means they lose `--gcc-toolchain=/opt/compiler-explorer/gcc-snapshot`
and fall back to the system GCC 13. This causes `-stdlib=libstdc++` users
to get a stale libstdc++ that lacks headers like `bits/version.h`.
Fix by moving the toolchain flag to `baseOptions`, which is concatenated
with `options` rather than replaced by it. `clang_p1144` and
`clang_lifetime` already set their own toolchain, so they get their own
`baseOptions` override with the correct path and the toolchain flag is
moved out of their `options`.
Affects ~18 compilers including clang_hana, clang_bb_p2996, clang_p2998,
clang_patmat, clang_resugar, clang_barry, clang_concepts, and others.
🤖 Generated by LLM (Claude, via OpenClaw)