Open PiotrSikora opened 11 months ago
cc @motiejus, since this probably also affects Bazel, which I believe is using depfiles... Although, I imagine that Zig's caching system not caching those artifacts on top of Bazel's cache is a desired feature.
Although, I imagine that Zig's caching system not caching those artifacts on top of Bazel's cache is a desired feature.
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
Download any project using CMake, e.g. zlib-ng:
Purge Zig cache and rebuild standard C library:
Build zlib-ng with CMake:
Expected Behavior
I expected the build time to improve significantly thanks to Zig's builtin caching system, but that wasn't the case.
Note that it works when the use of depfiles is disabled using
-DCMAKE_DEPENDS_USE_COMPILER=OFF
.Purge Zig cache and rebuild standard C library:
Build zlib-ng with CMake without the use of depfiles:
The only difference between those invocations are the
-MD
,-MF
, and-MT
flags.