summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gnau2025-10-03 08:59:42 +0000
committerChristian Marangi2025-11-04 14:13:05 +0000
commita38b0c94dd02a03ab14f55bc98b2aa24561aed5a (patch)
treed98d54b9cb11ad4b1b7751ba446e84483b6bfa22
parent99e62c21c6eaf1bc68e56d279d3aad005f52e113 (diff)
downloadopenwrt-a38b0c94dd02a03ab14f55bc98b2aa24561aed5a.tar.gz
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 (cherry picked from commit 6f32c657db55a2e34f659d81d56aa385aaa7d69d) Link: https://github.com/openwrt/openwrt/pull/20334 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--tools/ccache/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile
index 447bc3ea43..fde96be8c1 100644
--- a/tools/ccache/Makefile
+++ b/tools/ccache/Makefile
@@ -17,6 +17,7 @@ include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_HOST_OPTIONS += \
+ -DCCACHE_DEV_MODE=OFF \
-DCMAKE_C_COMPILER_LAUNCHER="" \
-DCMAKE_CXX_COMPILER_LAUNCHER="" \
-DCMAKE_SKIP_RPATH=FALSE \