Omit local build paths from the packaged Zig runtime #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "MilqueAndToast/fe3h-recomp:codex/zig-runtime-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
-sto 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, andstrtoul.make test-modspassed.generated/), extracted files, assets or logs containing game code are included.Thanks! We'll test this on AMD here and merge it after that.