tools: build ninja before ccache to fix the build order
authorFelix Fietkau <nbd@nbd.name>
Sat, 12 Jun 2021 12:24:40 +0000 (14:24 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 12 Jun 2021 12:33:57 +0000 (14:33 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/Makefile
tools/ninja/Makefile

index dccf298af6eef58e669f36c6724f4db4dd070117..a48aa80db3ad88eb1a9371f8cf34bb24b22d3260 100644 (file)
@@ -79,7 +79,7 @@ ifneq ($(HOST_OS),Linux)
 endif
 
 ifneq ($(CONFIG_CCACHE)$(CONFIG_SDK),)
-$(foreach tool, $(filter-out xz zstd patch pkgconf libressl cmake,$(tools-y)), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/compile))
+$(foreach tool, $(filter-out xz zstd patch pkgconf libressl ninja cmake,$(tools-y)), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/compile))
 tools-y += ccache
 $(curdir)/ccache/compile := $(curdir)/zstd/compile
 endif
index 3cbd6aebba7548f13a9e98e707b812fed506bb24..0ff642a740f636a0bc49f4010e0448629d2f5107 100644 (file)
@@ -20,7 +20,7 @@ endef
 
 define Host/Compile
        cd $(HOST_BUILD_DIR) && \
-               CXX="$(HOSTCXX)" \
+               CXX="$(HOSTCXX_NOCACHE)" \
                CXXFLAGS="$(HOST_CXXFLAGS) $(HOST_CPPFLAGS)" \
                LDFLAGS="$(HOST_LDFLAGS)" \
                $(STAGING_DIR_HOST)/bin/$(PYTHON) configure.py --bootstrap $(CONFIGURE_ARGS)