Boost on Windows resolved to the conan recipe boost/<version>, which
doesn't exist; only boost_bin/<version> does. So Boost 1.85-1.90 never
resolved on MSVC despite the binaries being there (58 win32-vc packages
for 1.90.0 alone).
Regenerated with infra 42a2471d, which now emits lookupname. This also
picks up accumulated drift since the last regeneration: new libraries
anyxx, dispenso, quantlib and systemc, new hip-amd/kokkos/llvm versions,
an updated abseil 20260107.1 staticliblink list, and some reordering.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GY6Mv4XgKKpDN73PEawE4b
### The bug
`cachePut()` stores the compilation result **before** `cleanupResult()`
masks it, and the cache-hit path returns the stored value directly. So
we cache an unmasked result, and every subsequent hit serves it
verbatim.
### What you see
The compilation-options popover shows a different command line for a
warm compile than for a cold one of the same input, naming a temp dir
that belonged to an unrelated earlier request:
```
cold: -o output.s ... example.cpp
warm: -o /tmp/compiler-explorer-compilerAbC123/output.s ... /tmp/compiler-explorer-compilerAbC123/example.cpp
```
`inputFilename` gets the same treatment, since `cleanupResult()` masks
both.
Cosmetic rather than a disclosure problem: the temp dir name isn't
sensitive. The reason it's worth fixing is that it means the masking
added in #9033 only ever takes effect on cold compiles, so on a warm
instance most users see the unmasked form.
### The fix
Move `cleanupResult()` above `cachePut()`, so what we store is what we'd
have shown. One statement, no new call site.
Nothing between the two positions reads the fields being masked: the
intervening block only touches `result.execResult` and its
`buildResult`.
### Scope
This covers the main compilation cache path. Two other `cachePut()` call
sites exist, and I have **not** verified them here: the execution cache,
and the cmake `fullResult` path (which caches with `delayCaching` and
whose inner `fullResult.result.compilationOptions` isn't reached by
`cleanupResult()` anyway, since that only masks top level). Worth a look
separately.
Also still unmasked on every path: `irOutput.compilationOptions` and
`optPipelineOutput.compilationOptions`. Being handled as part of the
review of #8960, which adds the panes that surface them.
### On existing cache entries
No migration concern. Cache entries live under `cache/` in
`storage.godbolt.org`, which has a lifecycle rule expiring them after 1
day (`terraform/s3.tf`, "Remove cached items"), so anything cached
unmasked before this ships ages out by itself.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Adds an example to the dispenso library entry so it is reachable from
the
Libraries UI rather than only via a link.
The example compares the default `kStatic` chunking against `kAdaptive`
on a
workload whose per-element cost grows 64x across the range, with a
serial
baseline for reference: https://godbolt.org/z/W116zME61
It prints a note that the timings should be disregarded on Compiler
Explorer.
The sandbox has very few cores, so any of the three can come out ahead
on a
given run; the example is there to read and run, not to measure.
Verified it builds clean under `-Wall -Wextra` and runs correctly
against
dispenso 1.6.2.
Fixes#9056. Fixes#9045.
### The bug, which is real for users and not just for CI
TomSelect's `addOptions()` does not re-render a dropdown that is already
open. `static/panes/diff.ts` rebuilds the difftype options whenever a
compile result lands:
```ts
this.selectize.lhsdifftype.clearOptions();
this.selectize.lhsdifftype.addOptions(lhsoptions);
```
`clearOptions()` strips the rendered `.option` nodes, and nothing puts
them back. So if you have the difftype picker open when a compile
response arrives, **the list empties under you** and stays empty until
you close and reopen it.
### The fix
Route the three rebuild sites through a helper that re-renders when the
picker is open.
`refreshOptions(false)` is deliberate: in tom-select both the open and
the close branches are gated on that argument (`if (triggerDropdown &&
!self.isOpen)` / `if (triggerDropdown && self.isOpen)`), so passing
`false` leaves the dropdown's open/closed state alone and only
re-renders the list. The `isOpen` guard keeps the common closed case
from doing render work on every compile.
### Why this also fixes the flaky test
#9056 worked out the mechanism: `diff.cy.ts` types `-O2` into the
options field, which debounce-triggers a recompile, then clicks the
difftype picker without waiting for it to settle. If the response lands
in the window between the click and the assertion, the dropdown is
emptied and `.ts-dropdown .option:visible` finds nothing.
Fixing the pane rather than adding a wait to the test means the
user-facing bug goes away too, rather than just being hidden from CI.
### On verification
I can't prove this deterministically: it's a race, so a green cypress
run isn't evidence either way, and the same run passes on `main` most of
the time. What I have checked is the mechanism end to end, in particular
that `refreshOptions(false)` re-renders without touching open/closed
state. Worth a maintainer sanity-check of that reasoning rather than
trusting a green tick.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Companion to compiler-explorer/infra#2309, which adds the build recipe.
This is
the properties half that makes the library selectable.
[dispenso](https://github.com/facebookincubator/dispenso) is a C++
library for
parallel programming — thread pools, `parallel_for`, futures, task
graphs and
concurrent containers. MIT licensed, C++14 baseline, C++20 supported.
I'm one of
its maintainers.
Adding v1.6.1. dispenso is a compiled library rather than header-only,
so this
uses `staticliblink` alongside `packagedheaders=true`; the recipe builds
it with
`lib_type: static`, so the two agree. No `.path=` entries, since the
install
prefix contains exactly `include/` and `lib/` and `packagedheaders`
derives the
include path from the package. I modelled the block on `kokkos`, which
is the
closest existing entry structurally.
No `dependencies` are needed: on Linux a consumer linking only
`-ldispenso`,
with no `-pthread`, compiles and runs correctly — glibc 2.34 folds
libpthread
into libc — and the 32-bit build links without `-latomic`. Both were
checked
directly rather than assumed. The recipe PR has the full verification
detail.
I could not run `npm run test:props` locally (no suitable node on the
machine I
have). Instead I lifted the regexes and rules out of
`lib/properties-validator.ts`
and replicated its checks over the modified file, comparing before
against
after: +7 keys, and zero newly introduced duplicate keys, empty list
elements,
malformed lines, or orphaned lib versions in either direction. That is a
replication rather than the real test, so CI is the authority here.
Once dispenso is building and selectable I'd like to follow up with a
`libs.dispenso.examples=` shortlink, the same way `libs.tbb.examples`
works.
The existing `clippy` excludes would need to be changed for Rust 1.100’s
release anyways (to all use `$` as e. g. `r1100` would match `r11000`),
and additionally a semver comparison is simpler for exclude lists that
exclude a larger number of versions, e. g. if someone were to add
`llvm-cov` as a tool, which is only available in Rust >= 1.49.
Fixes#8648.
`maskRootdir` strips a leading `/app/`, so the "All compilation options"
popup shows the source as `example.cpp` while the compiler is handed
`/app/example.cpp`. The same line already shows `-I/app/include` and
`-o/app/output.s`, because those keep the prefix, so today it is
inconsistent with itself.
Checked against production before touching anything, compiling `const
char* f = __FILE__;`:
```
compilationOptions: ['-g', '-o', 'output.s', '-masm=intel', '-fno-verbose-asm', '-S', '-fdiagnostics-color=always', '-O0', 'example.cpp']
asm: .string "/app/example.cpp"
```
That is what makes it worth fixing rather than cosmetic: `__FILE__` in
C, `file!()` in Rust and anything else that echoes the input path give
the user a value the popup contradicts.
The change adds `maskRootdirKeepingAppPrefix` and uses it in
`maskPathsInArgumentsForUser`, which is the only caller feeding that
popup. Output lines keep going through `maskRootdir`, so diagnostics are
untouched.
`npm run check` passes here except for the Maven Kotlin test, which
fails the same way on a clean checkout on this machine (symlink realpath
on Windows).
One part of the issue I did not fix: the
`/nosym/tmp/compiler-explorer-.../example.rs` path reported on the first
compilation. `maskRootdir` handles that shape correctly when I feed it
directly, so it looks like a result that never reaches the masking, and
I could not reproduce it.
Fixes#9007.
`LibsWidget` buckets `availableLibs` by compiler id, and it had two
disagreeing ways of deciding that key.
The constructor read `compiler.id`. `setNewLangId` took a plain id
string. The compiler and executor panes pass a `CompilerInfo`, so they
matched the constructor. The conformance view passes
`compilerIds.join('|')`, because the libraries it offers are the
intersection across every compiler in the pane, so it matched
`setNewLangId` instead. The parameter was typed `any`, so nothing
complained.
Reading `.id` off a string gives `undefined`. So a conformance view
restored from a link:
1. builds the widget with the joined id and keys itself on `undefined`,
2. loads the saved libs into `availableLibs[langId][undefined]`,
3. gets a real compiler-change event once the picker resolves, which
calls `updateLibraries` and then `setNewLangId` with the same joined
string,
4. is now keyed on `"g142|clang1500"`, where nothing was ever recorded.
`listUsedLibs` reads the new bucket, finds nothing, and the libraries
are gone. Re-adding one through the green button writes it into the new
bucket, which is why that workaround sticks, exactly as the reporter
describes.
Both paths now go through one `toCompilerKey`, so the key cannot change
shape mid-life. The parameter is typed instead of `any`, which is what
let the two conventions coexist.
One deliberate behavior change beyond the bug: a compiler whose `id` is
the empty string now falls into `_default_` from the constructor too.
`setNewLangId` already treated it that way through its falsy check, so
this makes the two agree rather than inventing a third rule.
The local `c_default_compiler_non_id` becomes the exported
`DEFAULT_COMPILER_KEY`, and the two places that spelled the same value
as a bare `'_default_'` literal now use it. Same value throughout, one
name.
## What I ran
`npm run check` passes: ts-check on both projects, biome over 826 files,
frontend imports, license headers, and the test run.
New test file `static/tests/widgets/libs-widget-tests.ts`, 5 cases over
`toCompilerKey`, covering both call shapes, that they agree for the same
compiler, every empty shape landing on the default, and that no shape
can yield a non-string. All 5 fail before the change and pass after.
The one failure in the suite, `test/build-systems-tests.ts > Maven build
system > builds Kotlin ...`, also fails on a clean `main` on my machine.
It is a symlink `realpath` comparison and I am on Windows.
I did not reproduce the symptom in a browser: I cannot run the server
locally, since it needs at least one compiler on POSIX paths. The chain
above is read off the code and pinned by the unit test at the point
where the two conventions met. If you would rather see a test that
drives the whole widget through construct then `setNewLangId`, say so
and I will add it.
Fixes#8964.
Directive filtering runs over the whole listing, including the region
between `#APP` and `#NO_APP`. That region is the user's own inline asm,
so filtering it changes what the block says. For the case in the issue:
```cpp
int square(int num) {
asm(".rept 5\nnop\n.endr");
return num * num;
}
```
`.rept 5` and `.endr` go away and a single `nop` is left, which reads as
one instruction where the source asks for five.
The parser already tracks the region: `updateParsingState` calls
`enterCustomAssembly` on `#APP` and `exitCustomAssembly` on `#NO_APP`,
and `isInCustomAssembly()` was being used only to fix label indentation.
`shouldSkipDirective` now consults it too.
### What still gets dropped
Not everything in the block is the user's. GCC interleaves its own line
markers, as @Alcaro pointed out on the issue:
```
#APP
# 3 "/app/example.cpp" 1
.rept 5
nop
.endr
# 0 "" 2
.loc 1 4 5 view .LVU3
# /app/example.cpp:4: return num * num;
.loc 1 4 18 is_stmt 0 view .LVU4
#NO_APP
```
So the rule is narrower than "skip filtering inside the block": inside
it, a directive is dropped only when it is a source-location marker.
That set is not a new list, it is the one `SourceLineHandler` already
consumes to build the source mapping (`.loc`, `.d2line`, `.cv_loc`,
`.dbg line`, `.stabn`), exposed as `isSourceLocationDirective`. Anything
the handler does not claim is text the compiler was asked to assemble,
and it stays.
The `#` lines above are comments and are unaffected, they still go with
the comment filter.
### The changed snapshots
`nvcc-x86-host-example` gains three lines: `.section .nv_fatbin, "a"`,
`.align 8` and `.text`, all inside its `#APP` block. The hundreds of
`.quad` lines in that block were already surviving the directive filter,
because `fatbinData:` sets `prevLabel` and `dataDefn` lines under a used
label are kept, so this is three lines added to output that was already
showing the blob, not the blob becoming visible.
`NvccCompiler.removeNvccFatbinaryBlob` is what actually hides it, and it
is unaffected.
No other case in `filters-cases` moves. `bug-577_gcc` and
`bug-577_clang` have `#APP` blocks with no directives in them.
### Tests
Three in `test/asm-parser-tests.ts`: the directives survive, the `.loc`
markers inside the same block still do not, and filtering resumes after
`#NO_APP`. The first and third fail on `main`. I ran the full suite in
`node:22-bookworm`, since `filter-tests.ts` returns early on Windows:
2631 passed.
Compiling anything that includes `Kokkos_Core.hpp` with nvcc currently
fails unless the user adds `--extended-lambda` by hand. Kokkos' own
headers use `__host__ __device__` lambdas, so this affects code that
never writes a `KOKKOS_LAMBDA` itself.
Verified on prod, nvcc 13.3, `-std=c++20`:
| kokkos-cuda | without the flag | with it |
|---|---|---|
| 4.7.04 | fails | |
| 5.1.1 | fails (first error in `Kokkos_CopyViews.hpp`) | |
| 5.2.0 | fails (first error in `Kokkos_CopyViews.hpp`) | compiles, exit
0 |
Note Kokkos 5.2 also requires C++20; `-std=c++17` fails earlier on
`std::type_identity`.
cc @JBludau (reported in compiler-explorer/infra#2184), @lucbv (#9009),
@partouf
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Profiling a production startup (2026-08-20, 6232 compilers) showed two
avoidable CPU costs in the last couple of seconds of startup:
- `setupCompilerChangeHandling`'s `onCompilerChange` ran
`JSON.stringify` over all 6232 compiler objects purely to detect whether
the compiler set had changed since the last discovery. The serialised
form is comparable in scale to the 74MB discovery JSON, and it was
computed (and retained in memory) even in production, where rescanning
is disabled (`rescanCompilerSecs` unset / `--prediscovered`) and so the
comparison can never trigger.
- The `OPTIONS HASH` log line appeared twice per startup:
`ClientOptionsHandler`'s constructor eagerly serialised and hashed the
options blob, only for the result to be immediately discarded and
recomputed by the first `setCompilers()` call.
Changes:
- `lib/app/compiler-changes.ts`: only do change detection when
rescanning is actually enabled, and compare a SHA-256 content hash
instead of retaining the full serialised compiler list. In production
the initial set is now applied with no serialisation at all; with
rescanning enabled, behaviour is unchanged (identical rescans are
skipped, changed sets applied) while dropping the tens-of-megabytes
retained string.
- `lib/options-handler.ts`: drop the constructor's
`_updateOptionsHash()` call. The hash/JSON are computed exactly once at
startup by the first `setCompilers()`, which always runs before the
server starts listening.
Tests: new `test/app/compiler-changes-tests.ts` covering initial
application, no rescan when prediscovered, unchanged rescans skipped,
and changed rescans applied; plus an options-handler test pinning that
the hash is only computed once compilers are set. `ts-check`, `lint`,
and the full test suite pass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Replaces #9052, whose diff GitHub refused to render ("No changes to
show") despite serving it correctly over the API and `.diff`. Same
change, fresh commit.
The **Clang x86-64** section currently mixes upstream
`llvm/llvm-project` builds in with 40 third-party forks, so there is no
way to tell at a glance which entries are actually upstream clang.
Several people in the clang community have raised this as the number of
experimental forks has grown.
- **Clang x86-64** keeps the upstream builds: `clang_trunk`,
`clang_assertions_trunk`, `clang_clangir`.
- **Clang x86-64 (experimental forks)** gets the other 40.
`clang_clangir` is deliberately on the upstream side: since
compiler-explorer/clang-builder#111 it builds from `llvm/llvm-project`
main with `-DCLANG_ENABLE_CIR=ON`, because ClangIR has been upstreamed.
It is a build flag, not a fork.
### Why it is only four lines
`clangx86experimental` is nested inside `clangx86trunk` rather than
being a new top-level group, so it inherits every other
`group.clangx86trunk.*` property (`baseName`, `ldPath`, `isNightly`,
`compilerType`, the `supports*` flags and the rest).
`compiler-finder.ts` passes the enclosing group's resolver as the
fallback when expanding a `&group` reference, and returns the innermost
group id for `group`, which is what the picker keys its sections off.
`clangx86assert` already does exactly this inside `group.clang` to
render its own "Clang x86-64 (assertions)" section, so the mechanism is
already in production.
### The diff, in case rendering misbehaves again
```
-group.clangx86trunk.compilers=clang_trunk:clang_assertions_trunk:clang_concepts:<...40 forks...>
+group.clangx86trunk.compilers=clang_trunk:clang_assertions_trunk:clang_clangir:&clangx86experimental
group.clangx86trunk.debugPatched=true
+
+group.clangx86experimental.compilers=clang_concepts:<...the 40 forks, unchanged order...>
+group.clangx86experimental.groupName=Clang x86-64 (experimental forks)
```
### Compatibility
Only the dropdown label changes. Compiler ids, `name` and `baseName` are
untouched, so existing links and bookmarks keep working and no compiler
is renamed.
`npm run test:props` passes.
/cc @cor3ntin
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Drops the `redundancy` option from the three `S3Cache` put paths.
`S3Bucket.put` already falls back to `STANDARD` when nothing is passed
(`lib/s3-handler.ts:77`), so the deletion is the whole fix.
One thing beyond what the issue lists: `lib/stats.ts` asks for the same
class when it flushes compilation records, and that is the only other
caller in the tree. Those records are not reconstructible the way a
cache entry is, so the lower durability costs something there and buys
nothing. I moved it across in the same commit rather than leaving a
single RRS write behind, but say the word and I will pull it back out
into its own PR.
For the regression guard I added a case per file, both asserting the
`StorageClass` that reaches the mocked `PutObjectCommand`:
`test/cache-tests.ts` covers `put`, `putWithTTL` and
`putWithTTLAndPath`, and `test/stats-test.ts` covers the flush.
Reverting either source file turns the matching test red with
`REDUCED_REDUNDANCY` instead of `STANDARD`.
Verified in a `node:22-bookworm` container, which is where my
node_modules live: full suite 2630 passed, 1 skipped across 122 files,
plus `npm run ts-check` and `biome check` clean. Committed through the
normal pre-commit hook.
Adds the C++ Alliance's clang fork implementing [P4324R0 (minimal
contracts)](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4324r0.html)
to the C++ compiler list.
This is the last piece of a chain whose other parts are already merged:
| Repo | PR | What it does |
|---|---|---|
| clang-builder | compiler-explorer/clang-builder#121 | build recipe for
`cppa-contracts-p4324` |
| infra | compiler-explorer/infra#2320 | nightly installable |
| compiler-workflows | compiler-explorer/compiler-workflows#79 | daily
rebuild, gated on branch activity |
### Why both options
`options=-fcontracts -stdlib=libc++` is load-bearing, not decoration:
- **`-fcontracts`**: without it the `pre` / `post` / `contract_assert`
syntax does not parse, so the compiler cannot demonstrate the thing it
exists to demonstrate. It parses under the fork's default `-std`, so
users do not have to pass `-std=c++2c` themselves.
- **`-stdlib=libc++`**: the violation handler
`__handle_contract_violation_v3` is only defined in this fork's own
libc++. Against the default libstdc++ the code compiles but fails to
link, so anything using Execute would break. This matches the sibling
`clang_notadragon_contracts_p3850`, which sets the same flag for the
same reason. `group.clangx86trunk.ldPath` already covers the fork's lib
dirs, so the runtime library resolves at execution time.
### Verification
Test-installed the actual S3 artifact
(`clang-cppa-contracts-p4324-20260821.tar.xz`) with `ce_install --dest`,
rather than eyeballing the config:
- `1 packages installed OK, 0 skipped, 0 failed`; `check_exe` passes.
- `clang version 24.0.0git (https://github.com/cppalliance/clang
c0d0594f6...)`, matching the head of the `p4324` branch.
- `ldd` shows only system libraries, so nothing is missing from the
tarball.
- A program with `pre` / `contract_assert` that `#include`s real headers
compiles, links and runs; violating the precondition aborts with
`bad.cpp:2: pre(i >= 0) failed`.
`npm run test:props` passes.
/cc @cor3ntin
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Lists CE's public MCP endpoint (`https://godbolt.org/mcp`) in the
[official MCP Registry](https://registry.modelcontextprotocol.io) as
`io.github.compiler-explorer/compiler-explorer`.
### What's here
- `server.json` — the registry record. Validated with `mcp-publisher
validate` against the live registry.
- `docs/MCP.md` — a "Registry listing" section covering how and when to
re-publish.
### Notes for review
**Publishing is deliberately not wired to a deploy.** The registry
stores metadata only — it records where the endpoint is, not what's
running behind it. Nothing in the record changes when the site updates,
and the registry rejects a repeat of an existing version, so a publish
on every deploy would simply fail. `server.json`'s `version` identifies
the *metadata record*; it's unrelated to `gh-NNNNN` build numbers.
Re-publish by hand on the rare occasion the file changes (documented in
`docs/MCP.md`). No CI workflow, and no infra changes.
**The namespace comes from GitHub org ownership**, not DNS —
`io.github.compiler-explorer/*` is granted to Owners/admins of the org,
so no TXT records or `.well-known` files are involved. It was chosen
over `org.godbolt/*` because the GitHub identity has exactly one name,
sidestepping the godbolt.org / compiler-explorer.com question.
**`name` is the one field that can't be changed later.** The URL,
description and icon all live in a versioned record and can be updated
by bumping the version and re-publishing — worth a second look at that
line specifically.
Not yet published — that needs a `mcp-publisher login github`
device-code auth from an org admin.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
cc @mattgodbolt — this is in the MCP endpoint from #8644.
## The problem
`compile` in the MCP tool calls `baseCompiler.compile()` directly, so a
compiler served by a sub-server gets attempted on whichever node handled
the MCP request. There's no compiler binary there to launch, so every
remotely-hosted compiler fails through `/mcp`:
```
runChild():486 Launching child process failed
```
Reproducible on production right now — `vcpp_v19_51_VS18_6_x64` through
`compiler-explorer.com/mcp` fails, while the same id and options through
`/api/compiler/<id>/compile` works. It affects any remote, not just the
Windows ones.
`CompileHandler.handle` has the branch that makes this work for REST:
```ts
const remote = compiler.getRemote();
if (remote) {
req.url = remote.path;
this.proxy.web(req, res, {target: remote.target, changeOrigin: true}, ...);
return;
}
```
There's no equivalent anywhere in `lib/mcp` — `git log -S"getRemote" --
lib/mcp` is empty, so this has been the case since the endpoint landed.
## The change
Check `getRemote()` and, when it's set, POST an equivalent request to
`remote.target + remote.path` rather than compiling locally. A tool call
has no `req`/`res` to hand to `http-proxy`, hence an outbound `fetch`
instead of the proxy. The sub-server returns the same JSON shape
`compile()` returns locally, so truncation, `buildResult` and
`execResult` handling below are untouched.
One wart: `result` is annotated `Awaited<ReturnType<typeof
baseCompiler.compile>>` rather than `CompilationResult`, because the
declared wire type has `asm?: string | ParsedAsmResultLine[]` and
`truncateLines` wants the array form — typing it as `CompilationResult`
doesn't compile. There's a cast on the remote branch with a comment
explaining why. Happy to do this differently if you'd rather.
## Testing
Unit tests: the existing fake compiler had no `getRemote`, so it's added
there; two new cases cover the remote path posting to the sub-server
(and never calling `compile()` locally) and a failing sub-server
response surfacing as a tool error.
Manually, against a local instance configured with the `gpu` and
`winprod` remotes:
| compiler | before | after |
| --- | --- | --- |
| `vcpp_v19_51_VS18_6_x64` `/O2` | `runChild():486` | `code 0`, `lea
eax, DWORD PTR [rcx+1]` |
| `vcpp_v19_51_VS18_6_x86` `/O2 /std:c++20` | — | `code 0`, `mov eax,
DWORD PTR _x$[esp-4]` |
| `clang-cl2216-v19_50_VS18_2` `/O2` | — | `code 0` |
Compile errors propagate too: a deliberate typo returns `code 2` with
`<source>(1): error C2065: 'nope': undeclared identifier`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
The Cypress harness starts the dev server with `--language c++`, so the
browser only ever sees C++ and CMake. Any spec that needs to exercise
behaviour *across* two languages therefore cannot run at all.
This blocks the chained-compiler tests in #8678, whose entire purpose is
compiling one pane's output as a different language. Its `beforeEach`
selects C for the downstream pane, and on a C++-only server it times out
looking for an option that does not exist. The suite does not merely
fail, it is **skipped wholesale**, because the failure happens in the
hook rather than in a test. That includes the one test written
specifically to answer a question asked during review, so the review has
been stuck waiting on an answer the harness could never produce.
`--language` is variadic (`--language <languages...>`), so adding C is a
one word change.
### Why nobody has noticed
`test-frontend.yml` is `on: [push]` and guarded by `if:
github.repository_owner == 'compiler-explorer'`. For a pull request from
a fork the push event fires in the fork, where the owner check fails,
and the workflow does not run for pull requests in this repo at all. So
Cypress has never run against #8678. The failure would first appear on
main, after merge.
That guard is worth a separate look, but it is not what this PR changes.
### Verification
Ran the full suite locally against this branch with the new flag, using
the same command the workflow uses:
```
14 specs, 91 tests, 91 passing, 0 failing (8m23s)
```
And against #8678's branch, the chained-compiler spec goes from 2
passing / 1 failing / 5 skipped to **8 passing** once C is available.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Supersedes #8872. Thanks to @likecrazy1, whose `AburiCompiler` class is
taken from that PR unchanged and who is credited as co-author — the
reason this is a new PR rather than an edit is that the properties
needed rewriting from scratch once upstream changed direction.
@serjective has
[confirmed](https://github.com/compiler-explorer/compiler-explorer/pull/8872#issuecomment-)
that `godbolt` is the live branch and the pinned `atta-mills` classic
version is abandoned, so this configures the nightly built from
`godbolt`.
## What changed from #8872, and why
**It is not an aarch64 Darwin cross compiler any more.** The new build
reports `Target: x86_64-unknown-linux-gnu`, so the group is plain
`aburi` with `instructionSet=amd64` rather than "Aburi (aarch64 Apple
Darwin)".
**No `--sysroot`.** This is the important one. On Linux, aburi's
`resolve_effective_stdlib` treats an explicit `--sysroot` as a different
root filesystem and **switches off Adinkra**, its own C++ standard
library. That is exactly why the previous configuration compiled CE's
header-free `square` example byte-perfectly and then failed on the first
`#include`. For a Linux target aburi takes its C headers from the host
root and its C++ headers from Adinkra, so it wants no sysroot at all.
**`-std=c++20` is required**, not optional — Adinkra `#error`s below
C++20, so a bare C++ compile fails outright.
**Nightly shape:** `isNightly=true` and `semver=(trunk)` instead of a
pinned `0.1.1`, since it now tracks a moving branch.
**Binary, binary object and execution are off.** Linking does work (I
built and ran a C++ executable against the shipped artifact), but
nothing has exercised those paths on the site, and they need
`-L`/`-Wl,-rpath` pointing at the bundled libc++abi to link at all.
Advertising a control that hard-fails is the exact trap this compiler
fell into last time, so I would rather turn them on as a follow-up once
someone can try them for real.
## Testing
Everything below was run against the artifact that is actually on S3
(`aburi-godbolt-20260814.tar.xz`), installed through the infra
installable:
- `--version` and `--help` both exit 0 (a non-zero version command
silently drops a compiler from the dropdown)
- C++ `-S` emits x86-64 assembly
- C compiles, links and runs
- `--emit-llvm` alone emits valid LLVM IR, which is what `AburiCompiler`
uses for the IR view. Note it rejects `--emit-llvm` combined with `-S`,
and the class already strips `-S` on that path
- `-g` is accepted, which the class always passes
- a TU using `<vector>`, `<string>` and a thrown-and-caught exception
compiles, links and runs — the case the old `--sysroot` broke
`npm run test:props` (90 passed), `npm run ts-check` and `npm run
lint-check` all clean.
## Merge order
This should land after, and only after, the compiler is installed:
- compiler-explorer/misc-builder#142, #143 (builder) — merged
- compiler-explorer/infra#2294 (nightly installable)
- compiler-explorer/compiler-workflows#76 (daily build)
Co-Authored-By: likecrazy1
<157763655+likecrazy1@users.noreply.github.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: likecrazy1 <157763655+likecrazy1@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
The most recent Odin versions have had an issue where the `output.ll`
filename is actually duplicated to `outputoutput.ll`, resulting in the
LLVM IR view not finding the file. Additionally, `dev-2026-08` fixed an
output assembly naming issue that caused the `.S` extension to always be
uppercase, regardless of filename. This broke the assembly view though
since the filenames now no longer matched.
Both of these issues were fixed by adding explicit version checks with
the corresponding correct codepaths.
## Summary
- enable clang-tidy for Clang-CUDA compiler groups in the default and
production CUDA configurations
- resolve clang-tidy from the selected Clang-CUDA toolchain while
preserving version suffixes
- add focused tests for CUDA and non-CUDA executable selection
Closes#6944
## Test plan
- [x] `npm run test:props` (90 tests)
- [x] `npm run ts-check`
- [x] `cross-env SKIP_EXPENSIVE_TESTS=true npx vitest related --run` (39
tests)
## AI assistance
AI assistance was used for codebase navigation and drafting. The final
diff was reviewed and the listed checks were run locally.
Companion to
https://github.com/compiler-explorer/clang-builder/pull/118, which has
the background on both profiles.
Adds two entries to the x86-64 clang group:
| Dropdown | Default options |
|---|---|
| x86-64 clang (std::init profile - P4222) | `-std=c++26 -fprofiles` |
| x86-64 clang (std::core_ub profile - P4317) | `-std=c++26 -fprofiles`
|
`-fprofiles` turns the framework on but enforces nothing by itself — a
profile has to be asked for in the source with
`[[profiles::enforce(...)]];`. Without that the compilers look identical
to trunk, so each notification says as much.