[openwrt/openwrt] rules.mk: Update ccache's compiler check.

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 12 03:17:28 PST 2024


blogic pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3859e8eeb82950d8594f60d40e5ee23fd02207c9

commit 3859e8eeb82950d8594f60d40e5ee23fd02207c9
Author: Markus Gothe <markus.gothe at genexis.eu>
AuthorDate: Tue Feb 7 22:00:33 2023 +0100

    rules.mk: Update ccache's compiler check.
    
    Update the compiler check for ccache so we don't
    end up with the wrong binaries. Right now the
    compiler check will not be able to correctly
    distinguish the compiler used for build
    ARMv8 binaries from the one used to build
    ARMv7 binaries.
    
    Signed-off-by: Markus Gothe <markus.gothe at genexis.eu>
    
    Link: https://github.com/openwrt/openwrt/pull/16290
    Signed-off-by: John Crispin <john at phrozen.org>
---
 rules.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules.mk b/rules.mk
index 9db7c72fa4..16d6020e1a 100644
--- a/rules.mk
+++ b/rules.mk
@@ -346,7 +346,7 @@ ifneq ($(CONFIG_CCACHE),)
   export CCACHE_NOCOMPRESS:=true
   export CCACHE_BASEDIR:=$(TOPDIR)
   export CCACHE_DIR:=$(if $(call qstrip,$(CONFIG_CCACHE_DIR)),$(call qstrip,$(CONFIG_CCACHE_DIR)),$(TOPDIR)/.ccache)
-  export CCACHE_COMPILERCHECK:=%compiler% -dumpmachine; %compiler% -dumpversion
+  export CCACHE_COMPILERCHECK:=%compiler% -v -c
 endif
 
 TARGET_CONFIGURE_OPTS = \




More information about the lede-commits mailing list