-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Build
-
Fully Compatible
We don't cache linker outputs, so for cache hydration we only need to use CppCompile actions that will match workstation configurations. Right now we build all unit tests, benchmarks, and other binaries which takes a very long time in static link debug-enabled configurations.
Since there isn't a straight forward way to instruct Bazel to compile but not link, instead strip out the debug symbols at link time. This drops the link time on these long running builds by over 90% without invalidating cache of CppCompile actions.