Skip to content

Commit 6f32c65

Browse files
RondomAnsuel
authored andcommitted
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: openwrt/openwrt#20290 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
1 parent 88fe81b commit 6f32c65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/ccache/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ include $(INCLUDE_DIR)/host-build.mk
1717
include $(INCLUDE_DIR)/cmake.mk
1818

1919
CMAKE_HOST_OPTIONS += \
20+
-DCCACHE_DEV_MODE=OFF \
2021
-DCMAKE_C_COMPILER_LAUNCHER="" \
2122
-DCMAKE_CXX_COMPILER_LAUNCHER="" \
2223
-DCMAKE_SKIP_RPATH=FALSE \

0 commit comments

Comments
 (0)