cmake.mk,rules.mk: fix host builds using CMake and ccache
authorPetr Štetiar <ynezz@true.cz>
Fri, 27 Nov 2020 21:50:32 +0000 (22:50 +0100)
committerRISCi_ATOM <bob@bobcall.me>
Sun, 6 Dec 2020 06:35:26 +0000 (01:35 -0500)
commite04c69fc1f70245b566bd6725828341d1020459e
tree48611d5bd75eb50c6adf071d950a6c37642d443a
parent1cb9efdb14b63ddb7946db32b617a5e7f62e6457
cmake.mk,rules.mk: fix host builds using CMake and ccache

Commit f98878e4c17d ("cmake.mk: set C/CXX compiler for host builds as
well") has introduced regression as it didn't taken usage of ccache into
the account so fix it by handling ccache use cases as well.

In order to get this working we need to export HOSTCXX_NOCACHE in
rules.mk as well.

Fixes: f98878e4c17d ("cmake.mk: set C/CXX compiler for host builds as well")
Reported-by: Ansuel Smith <ansuelsmth@gmail.com>
Tested-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 524fb5646eec6147aadfdd508219f39bcf8ba8fc)
include/cmake.mk
rules.mk