Skip to content

Commit f34953f

Browse files
authored
enable ccache
1 parent 55af68c commit f34953f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ SKIP_ENV=0
1616
COPY_OUT=0
1717
ARCHIVE_OUT=1
1818
DEPLOY_OUT=0
19+
CCACHE_ENABLE=1
1920

2021
function print_help() {
21-
echo "Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant>] [config ...]"
22+
echo "Usage: build.sh [-s] [-n] [-A <arduino_branch>] [-I <idf_branch>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant>] [config ...]"
2223
echo " -s Skip installing/updating of ESP-IDF and all components"
24+
echo " -n Disable ccache"
2325
echo " -A Set which branch of arduino-esp32 to be used for compilation"
2426
echo " -I Set which branch of ESP-IDF to be used for compilation"
2527
echo " -i Set which commit of ESP-IDF to be used for compilation"
@@ -35,6 +37,9 @@ while getopts ":A:I:i:c:t:b:sde" opt; do
3537
s )
3638
SKIP_ENV=1
3739
;;
40+
n )
41+
CCACHE_ENABLE=0
42+
;;
3843
e )
3944
ARCHIVE_OUT=1
4045
;;
@@ -75,6 +80,8 @@ done
7580
shift $((OPTIND -1))
7681
CONFIGS=$@
7782

83+
export IDF_CCACHE_ENABLE=$CCACHE_ENABLE
84+
7885
# Output the TARGET array
7986
echo "TARGET(s): ${TARGET[@]}"
8087

0 commit comments

Comments
 (0)