CI: release build with line tables; xcl.exe and xcl.pdb kept on main #595

Closed
Kaairim wants to merge 1 commit from upstream-pr/600 into main
Kaairim commented 2026-11-24 02:19:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kaairim on 2026-11-24T02:19:39Z.


Regression runs use target\release\xcl.exe (scripts/smoke.ps1), but CI only builds debug, so a release-only build error first shows in the maintainer's batch. Crash lines also give addresses as module+0x… with no PDB to turn them into lines (#477, #498, #534).

What is in it

  • Cargo.toml: [profile.release] debug = "line-tables-only" – the linker writes xcl.pdb next to xcl.exe; line tables do not change the generated code
  • .github/workflows/ci.yml: a release job (Windows): cargo build --release -p xcl, fails if xcl.pdb is missing; on pushes to main it keeps xcl.exe and xcl.pdb as the run's artifact (14 days). PRs build but upload nothing: that would be a build of unreviewed code

Tested

  • Windows 11 (26300); not built locally (no Rust toolchain on this machine). The job's run on this PR is the build check

Not tested

  • The release build, the PDB's presence and the binary's size (larger file, debug info only) – first seen on CI
  • No change to crates/xcl/src, so no regression run; the generated code should be identical, but I did not compare binaries

AI use

  • Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line.

Improvements by William "kaairim" Deivid (wdcore).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:6573135181 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/600). Originally posted by [Kaairim](https://github.com/Kaairim) on 2026-11-24T02:19:39Z. --- Regression runs use `target\release\xcl.exe` (scripts/smoke.ps1), but CI only builds debug, so a release-only build error first shows in the maintainer's batch. Crash lines also give addresses as `module+0x…` with no PDB to turn them into lines (#477, #498, #534). **What is in it** - `Cargo.toml`: `[profile.release] debug = "line-tables-only"` – the linker writes `xcl.pdb` next to `xcl.exe`; line tables do not change the generated code - `.github/workflows/ci.yml`: a `release` job (Windows): `cargo build --release -p xcl`, fails if `xcl.pdb` is missing; on pushes to main it keeps `xcl.exe` and `xcl.pdb` as the run's artifact (14 days). PRs build but upload nothing: that would be a build of unreviewed code **Tested** - Windows 11 (26300); **not built** locally (no Rust toolchain on this machine). The job's run on this PR is the build check **Not tested** - The release build, the PDB's presence and the binary's size (larger file, debug info only) – first seen on CI - No change to `crates/xcl/src`, so no regression run; the generated code should be identical, but I did not compare binaries **AI use** - Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line. Improvements by William "kaairim" Deivid (wdcore). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
theaustinayers commented 2026-11-24 07:06:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by theaustinayers on 2026-11-24T03:57:16Z.


A local build of this on Windows, since the description says it was not built. Written with Claude Code (Claude Fable 5.2) from builds on my machine.

Tested

  • Windows 11 build 26300, rustc 1.100.0, cargo build --release -p xcl at this PR's merge base and at its head 52d5f5f (same target directory, built one after the other).
  • Both build. With debug = "line-tables-only" the profile line reads optimized + debuginfo and the build took 48 s here against 27 s.
  • xcl.exe: 6 664 192 bytes at the base, 6 662 144 bytes with this PR. The two files are not byte-identical (their hashes differ); I did not compare the code sections.
  • xcl.pdb: 3 878 912 bytes at the base (one is written there already, without line tables), 22 056 960 bytes with this PR.

Not tested

  • The new release job in ci.yml (it runs on GitHub, not here) and its artifact upload.
  • Whether a crash address resolves to a file and line with the new PDB: I built it, I did not symbolize with it.
  • A title run with the binary built this way.
<!-- greyfinch-sync:ivall/xcl:comment:7121572748 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/600#issuecomment-7121572748). Originally posted by [theaustinayers](https://github.com/theaustinayers) on 2026-11-24T03:57:16Z. --- A local build of this on Windows, since the description says it was not built. Written with Claude Code (Claude Fable 5.2) from builds on my machine. **Tested** - Windows 11 build 26300, rustc 1.100.0, `cargo build --release -p xcl` at this PR's merge base and at its head 52d5f5f (same target directory, built one after the other). - Both build. With `debug = "line-tables-only"` the profile line reads `optimized + debuginfo` and the build took 48 s here against 27 s. - `xcl.exe`: 6 664 192 bytes at the base, 6 662 144 bytes with this PR. The two files are not byte-identical (their hashes differ); I did not compare the code sections. - `xcl.pdb`: 3 878 912 bytes at the base (one is written there already, without line tables), 22 056 960 bytes with this PR. **Not tested** - The new `release` job in `ci.yml` (it runs on GitHub, not here) and its artifact upload. - Whether a crash address resolves to a file and line with the new PDB: I built it, I did not symbolize with it. - A title run with the binary built this way.
upstream-sync closed this pull request 2026-11-24 11:04:52 +00:00
raylitebull commented 2026-11-24 11:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-24T10:42:57Z.


Closing as superseded by #713, which has already been merged into main.

<!-- greyfinch-sync:ivall/xcl:comment:7129148474 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/600#issuecomment-7129148474). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-24T10:42:57Z. --- Closing as superseded by #713, which has already been merged into `main`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!595
No description provided.