Skip to content

Commit

Permalink
disable ccache in a friendly way
Browse files Browse the repository at this point in the history
  • Loading branch information
lanefu authored and adeepn committed Jan 23, 2025
1 parent d4b5c30 commit de97c74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/functions/configuration/compilation-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

function prepare_compilation_vars() {
# moved from config: rpardini: ccache belongs in compilation, not config. I think.
if [[ $USE_CCACHE != no ]]; then
if [[ $USE_CCACHE == yes || ${PRIVATE_CCACHE} == yes ]]; then
display_alert "using CCACHE" "USE_CCACHE or PRIVATE_CCACHE is set to yes" "warn"

CCACHE=ccache
export PATH="/usr/lib/ccache:$PATH" # this actually needs export'ing
# private ccache directory to avoid permission issues when using build script with "sudo"
Expand Down
1 change: 1 addition & 0 deletions lib/functions/configuration/main-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function do_main_configuration() {
display_alert "DEST_LANG..." "DEST_LANG: ${DEST_LANG}" "debug"

declare -g SKIP_EXTERNAL_TOOLCHAINS="${SKIP_EXTERNAL_TOOLCHAINS:-yes}" # don't use any external toolchains, by default.
declare -g USE_CCACHE="${USE_CCACHE:-no}" # stop using ccache as our worktree is more effective

# Armbian config is central tool used in all builds. As its build externally, we have moved it to extension. Enable it here.
enable_extension "armbian-config"
Expand Down

0 comments on commit de97c74

Please sign in to comment.