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
I'm trying to use sccache to speed up compilation of OpenWrt which in my particular configuration ends up building a Rust toolchain.
My sccache stats after a few builds give me this:
Compile requests 1529
Compile requests executed 268
Cache hits 266
Cache hits (C/C++) 73
Cache hits (Rust) 193
Cache misses 0
Cache timeouts 0
Cache read errors 0
Forced recaches 0
Cache write errors 0
Compilation failures 0
Cache errors 2
Cache errors (Rust) 2
Non-cacheable compilations 0
Non-cacheable calls 1187
Non-compilation calls 74
Unsupported compiler calls 0
Average cache write 0.000 s
Average compiler 0.000 s
Average cache read hit 0.007 s
Failed distributed compilations 0
Non-cacheable reasons:
--sysroot 915
crate-type 212
- 38
missing input 22
Cache location Local disk: "/var/tmp/openwrt-sccache/"
Use direct/preprocessor mode? yes
Version (client) 0.8.1
Cache size 147 MiB
Max cache size 10 GiB
My understanding is that the majority of calls are not being cached as they specify an alternative sysroot. Looking at sccache source code I found this:
I assume the TooHard family is a form of "not implemented", if so this all makes sense so far.
As I have no knowledge how sccache works internally, I do not know how feasible it would be to add support for caching these types of calls. My hope is that it can be done simply by adding sysroot to some kind of hash somewhere to prevent collisions, but that may be too naive. I'll defer to the maintainers.
Hi,
I'm trying to use sccache to speed up compilation of OpenWrt which in my particular configuration ends up building a Rust toolchain.
My sccache stats after a few builds give me this:
My understanding is that the majority of calls are not being cached as they specify an alternative sysroot. Looking at sccache source code I found this:
sccache/src/compiler/rust.rs
Lines 1024 to 1029 in 9958e7c
I assume the
TooHard
family is a form of "not implemented", if so this all makes sense so far.As I have no knowledge how sccache works internally, I do not know how feasible it would be to add support for caching these types of calls. My hope is that it can be done simply by adding
sysroot
to some kind of hash somewhere to prevent collisions, but that may be too naive. I'll defer to the maintainers.Example invocation that openwrt seems to use:
The text was updated successfully, but these errors were encountered: