mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ccache: Include hash of compiler specs in hashing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -57,6 +57,9 @@ DIR_CONF = $(LFS_BASEDIR)/config
|
||||
DIR_INFO = $(LFS_BASEDIR)/log
|
||||
DIR_TMP = /tmp
|
||||
|
||||
# Add the compiler location and version and specs to the ccache hash
|
||||
CCACHE_COMPILERCHECK += $(shell gcc -dumpspecs 2>/dev/null | md5sum | cut -d ' ' -f1)
|
||||
|
||||
###############################################################################
|
||||
# Common Macro Definitions
|
||||
###############################################################################
|
||||
|
||||
2
make.sh
2
make.sh
@@ -221,7 +221,7 @@ prepareenv() {
|
||||
# Run LFS static binary creation scripts one by one
|
||||
export CCACHE_DIR=$BASEDIR/ccache
|
||||
export CCACHE_COMPRESS=1
|
||||
export CCACHE_COMPILERCHECK="string:toolchain-${TOOLCHAINVER}:${TARGET_ARCH}"
|
||||
export CCACHE_COMPILERCHECK="string:toolchain-${TOOLCHAINVER} ${TARGET_ARCH}"
|
||||
|
||||
# Remove pre-install list of installed files in case user erase some files before rebuild
|
||||
rm -f $BASEDIR/build/usr/src/lsalr 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user