You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@metajack found this while trying to use sccache to build servo on Mac. There's a crate that uses the gcc crate in a build script to build a static library, and the crate is always a cache miss because sccache includes the hash of the static library in the cache key, but Apple's ld includes timestamps in static libraries (with no way to disable that behavior, AFAICT), so the file never hashes the same.
We discussed a few remedies, including having the gcc crate zero out the timestamps on static libraries it generates, or having sccache parse static libraries and hashing only the object files within.
The text was updated successfully, but these errors were encountered:
@metajack found this while trying to use sccache to build servo on Mac. There's a crate that uses the
gcc
crate in a build script to build a static library, and the crate is always a cache miss because sccache includes the hash of the static library in the cache key, but Apple'sld
includes timestamps in static libraries (with no way to disable that behavior, AFAICT), so the file never hashes the same.We discussed a few remedies, including having the gcc crate zero out the timestamps on static libraries it generates, or having sccache parse static libraries and hashing only the object files within.
The text was updated successfully, but these errors were encountered: