Skip to content
Snippets Groups Projects
Commit a2f1059a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

If ccache is installed, cache compilations

parent dfb50633
Branches
Tags
No related merge requests found
......@@ -15,7 +15,17 @@ if [ ! -d ${PREFIX} ]; then
log_info "Creating virtualenv installation at ${PREFIX}..."
run_cmd ${BOB_PREFIX_PATH}/bin/virtualenv --system-site-packages ${PREFIX}
else
log_warn "Prefix directory ${PREFIX} exists, not re-installing..."
log_info "Prefix directory ${PREFIX} exists, not re-installing..."
fi
# Configures CCACHE
use_ccache=`which ccache`
if [ -z "${use_ccache}" ]; then
log_warn "Cannot find ccache, compiling from scratch..."
else
log_info "ccache installed at ${use_ccache}, caching compilations..."
run_cmd ln -s ${use_cacche} ${PREFIX}/bin/gcc
run_cmd ln -s ${use_cacche} ${PREFIX}/bin/g++
fi
# Source the newly created virtualenv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment