Skip to content

Commit 8dea6c4

Browse files
committed
build.sh: add ccache support
1 parent ea91d63 commit 8dea6c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if [[ $OSTYPE == 'msys' ]]; then
2020
fi
2121
fi
2222

23+
# Check if ccache is installed, and if so, use it
24+
if command -v ccache &> /dev/null; then
25+
export CCACHE=ccache
26+
fi
27+
2328
makeWithParams(){
2429
make -j"${JOBS}" "$@"
2530
}

0 commit comments

Comments
 (0)