[riot-notifications] [RIOT-OS/RIOT] make: disable dwarf compression on CI builds (#12198)
notifications at github.com
Wed Sep 11 10:40:05 CEST 2019
kaspar030 commented on this pull request.
> @@ -39,9 +39,10 @@ endif
CFLAGS += -fno-common
# Compress debug info. This saves approximately 50% of disk usage.
-# It has no effect if debugging information is not emitted, so it can be left
-# on unconditionally.
-OPTIONAL_CFLAGS += -gz
+# This makes ccache less effective, so disable for CI builds.
+ifneq (1, $(RIOT_CI_BUILD))
I'm in the process of nailing down the problem within the ccache source.
It seems like as soon as any "-g*" option is used, ccache assumes debug info is generated, and includes the current cwd in the hash that identifies cache entries. For "-gz" without any other "-g" other than "-g0", this is a ccache bug. CI builds with a seperate builddir per checkout, so that could be the reason why it is affected a lot more than a local build.
I'm just now trying to create a reproducer and maybe open an upstream bug. For now, I'm confident this is a corner case of how ccache is used in our CI...
Hm, I'm realizing that local builds in different build directories would be affected too. I do that all the time. :) So maybe guarding that by ccache is a good idea.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications