build: operate ccache in preprocessor mode

This avoids consistency problems when header files are shadowed.

Fixes #4256
This commit is contained in:
Norman Feske 2021-08-24 13:51:47 +02:00 committed by Christian Helmuth
parent 040628894c
commit 82a51d8eaa

View File

@ -370,6 +370,9 @@ ifneq ($(filter /%,$(CUSTOM_CXX)),)
export CCACHE_PATH := $(dir $(CUSTOM_CXX)):$(PATH)
endif
# force preprocessor mode
export CCACHE_NODIRECT=1
# override CUSTOM_CC and CUSTOM_CXX to point to the ccache symlinks
export CUSTOM_CC := $(CCACHED_CUSTOM_CC)
export CUSTOM_CXX := $(CCACHED_CUSTOM_CXX)