Skip to content

Commit 9567bcc

Browse files
danielml3beingmishra
authored andcommitted
envsetup: export the CCACHE_DIR if its not set
Change-Id: Ie946fc6ef2b6e216831c8724d422766d0557ea3f
1 parent 39a4dbc commit 9567bcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: envsetup.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,9 @@ if [ -z ${CCACHE_EXEC} ]; then
18911891
if [ ! -z "$ccache_path" ]; then
18921892
export USE_CCACHE=1
18931893
export CCACHE_EXEC="$ccache_path"
1894+
if [ -z ${CCACHE_DIR} ]; then
1895+
export CCACHE_DIR=${HOME}/.ccache
1896+
fi
18941897
$ccache_path -o compression=true
18951898
echo -e "\e[1mccache enabled and \e[32m\e[4mCCACHE_EXEC\e[0m \e[1mhas been set to : \e[4m$ccache_path\e[0m"
18961899
else

0 commit comments

Comments
 (0)