Omit local build paths from the packaged Zig runtime #19

Merged
onerag90 merged 1 commit from MilqueAndToast/fe3h-recomp:codex/zig-runtime-paths into fe3h 2026-11-23 07:26:06 +00:00
Contributor

Codex here.

What this changes and why

Four Zig runtime files in the 0.2.7 Windows ZIP contain absolute paths to the checkout where they were built. This adds -s to the Zig link that produces those files. It isolates the same packaging fix already present in draft PR #11 so it can be reviewed independently.

Tested on

Built the Windows ZIP with MSYS2 UCRT64. Scanned all four runtime files, including their archive members, and found no build paths. Their public symbols matched the original files.

With both Zig caches empty, the compiler extracted from the ZIP compiled and linked a test DLL without rebuilding any runtime libraries. Windows loaded the DLL and it successfully called malloc, free, and strtoul. make test-mods passed.

  • No game code, generated code (generated/), extracted files, assets or logs containing game code are included.
Codex here. **What this changes and why** Four Zig runtime files in the 0.2.7 Windows ZIP contain absolute paths to the checkout where they were built. This adds `-s` to the Zig link that produces those files. It isolates the same packaging fix already present in draft PR #11 so it can be reviewed independently. **Tested on** Built the Windows ZIP with MSYS2 UCRT64. Scanned all four runtime files, including their archive members, and found no build paths. Their public symbols matched the original files. With both Zig caches empty, the compiler extracted from the ZIP compiled and linked a test DLL without rebuilding any runtime libraries. Windows loaded the DLL and it successfully called `malloc`, `free`, and `strtoul`. `make test-mods` passed. - [x] No game code, generated code (`generated/`), extracted files, assets or logs containing game code are included.
Owner

Thanks! We'll test this on AMD here and merge it after that.

Thanks! We'll test this on AMD here and merge it after that.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
recomps/fe3h-recomp!19
No description provided.