build: reduce cold-cache build times #1037

Open
opened 2023-09-24 17:49:46 +00:00 by emidoots · 1 comment
emidoots commented 2023-09-24 17:49:46 +00:00 (Migrated from github.com)

Currently due to the way our build.zig scripts work, and due to how the Zig package manager works, this command in the mach-core repository:

rm -rf zig-cache zig-out/ ~/.cache/zig && zig build

Results in two clones of https://github.com/hexops/xcode-frameworks - and a decent amount of work (I believe?) spend zig building our dependencies which doesn't actually end up being used in the final binary you're actually trying to build. We should be able to reduce this.

Currently due to the way our `build.zig` scripts work, and due to how the Zig package manager works, this command in the mach-core repository: ``` rm -rf zig-cache zig-out/ ~/.cache/zig && zig build ``` Results in two clones of `https://github.com/hexops/xcode-frameworks` - and a decent amount of work (I believe?) spend `zig build`ing our dependencies which doesn't actually end up being used in the final binary you're actually trying to build. We should be able to reduce this.
emidoots commented 2023-10-17 04:54:28 +00:00 (Migrated from github.com)
Helped by https://github.com/hexops/mach/issues/903 Being tracked historically at https://wrench.machengine.org/stats/
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
hexops/mach#1037
No description provided.