]> git.ipfire.org Git - thirdparty/openwrt.git/commit
tools/ccache: same behaviour for local and CI builds 20290/head
authorAndreas Gnau <andreas.gnau@iopsys.eu>
Fri, 3 Oct 2025 08:59:42 +0000 (10:59 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 3 Oct 2025 22:33:53 +0000 (00:33 +0200)
commit6f32c657db55a2e34f659d81d56aa385aaa7d69d
tree04d80e0f103cdd9acc17ecdbe82472650edd89bb
parent88fe81bb0caaab8d159805f1f639261f105a7c2a
tools/ccache: same behaviour for local and CI builds

If the environment variable `CI` is set, ccache will enable the CMake
option CCACHE_DEV_MODE by default. This leads to differing behaviour
between local and CI builds which takes quite some time to debug. ðŸ¤¯

Achieve consistent behaviour between local builds and CI builds by
setting CCACHE_DEV_MODE. Set it to OFF, because CCACHE_DEV_MODE amongst
other settings like linker choice, enables -Werror, which will lead to
potential compilation failures when the host compiler is updated. Using
-Werror for host utils is not desirable, because the compiler version
used is not controlled by the OpenWrt build system and host utils should
compile successfully on an as wide range of host OSes as possible.

Reported-by: Roman Azarenko <roman.azarenko@iopsys.eu>
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Link: https://github.com/openwrt/openwrt/pull/20290
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
tools/ccache/Makefile