From cce5fdbcf2e402a73d48cb1a5fd2cd1dec53dec9 Mon Sep 17 00:00:00 2001 From: EBK21 Date: Tue, 23 Jul 2024 21:55:53 +0800 Subject: [PATCH] [no ci] ccache? --- b.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/b.sh b/b.sh index c030715..043bf1c 100755 --- a/b.sh +++ b/b.sh @@ -52,6 +52,8 @@ if [ -e /opt/newclang/bin ]; then export PATH=/opt/newclang/bin:$PATH fi +hash -r + if [ x$2 = xgcc ]; then KCFLAGS="-fgraphite -fgraphite-identity -fipa-pta -fmodulo-sched -fmodulo-sched-allow-regmoves -freschedule-modulo-scheduled-loops -flive-range-shrinkage -floop-nest-optimize -fsched-pressure -fsched-spec-load -fsched-stalled-insns=4 -fsched-stalled-insns-dep=6 -fschedule-insns -ftree-lrs -fweb -fira-region=mixed -fgcse-las -malign-data=cacheline -mrelax-cmpxchg-loop @$PWD/../gp.txt" else @@ -83,10 +85,11 @@ export LLVM=1 fi if [ "x$(which ccache)" != "x" ]; then +echo "Found ccache !" ccache -o compression_level=3 ccache -o sloppiness=locale export CC="ccache $CC" fi -make olddefconfig -make bindeb-pkg -j3 V=1 +make olddefconfig CC="$CC" +make bindeb-pkg -j3 V=1 CC="$CC"