CCACHE_WRAPPER_DIR->CCACHE_WRAPPER_PATH

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/591/head
Jesse Vincent 6 years ago
parent e9668d36ab
commit 8cdd058d9e

@ -29,7 +29,7 @@ build_paths() {
KALEIDOSCOPE_TEMP_PATH="${KALEIDOSCOPE_TEMP_PATH:-${TMPDIR:-/tmp}/kaleidoscope-${USER}}" KALEIDOSCOPE_TEMP_PATH="${KALEIDOSCOPE_TEMP_PATH:-${TMPDIR:-/tmp}/kaleidoscope-${USER}}"
BUILD_PATH="${BUILD_PATH:-${KALEIDOSCOPE_TEMP_PATH}/sketch/${LIBRARY}}/build" BUILD_PATH="${BUILD_PATH:-${KALEIDOSCOPE_TEMP_PATH}/sketch/${LIBRARY}}/build"
OUTPUT_PATH="${OUTPUT_PATH:-${KALEIDOSCOPE_TEMP_PATH}/sketch/${LIBRARY}}/output" OUTPUT_PATH="${OUTPUT_PATH:-${KALEIDOSCOPE_TEMP_PATH}/sketch/${LIBRARY}}/output"
CCACHE_WRAPPER_DIR="${CCACHE_WRAPPER_DIR:-${KALEIDOSCOPE_TEMP_PATH}/ccache/bin}" CCACHE_WRAPPER_PATH="${CCACHE_WRAPPER_PATH:-${KALEIDOSCOPE_TEMP_PATH}/ccache/bin}"
CORE_CACHE_PATH="${CORE_CACHE_PATH:-${KALEIDOSCOPE_TEMP_PATH}/arduino-cores}" CORE_CACHE_PATH="${CORE_CACHE_PATH:-${KALEIDOSCOPE_TEMP_PATH}/arduino-cores}"
@ -48,17 +48,17 @@ build_filenames () {
enable_ccache () { enable_ccache () {
if [ $(which ccache) ]; then if [ $(which ccache) ]; then
if ! [ -d $CCACHE_WRAPPER_DIR ]; then if ! [ -d $CCACHE_WRAPPER_PATH ]; then
mkdir -p $CCACHE_WRAPPER_DIR mkdir -p $CCACHE_WRAPPER_PATH
ln -s "$(which ccache)" ${CCACHE_WRAPPER_DIR}/${COMPILER_PREFIX}gcc ln -s "$(which ccache)" ${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}gcc
ln -s "$(which ccache)" ${CCACHE_WRAPPER_DIR}/${COMPILER_PREFIX}g++ ln -s "$(which ccache)" ${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}g++
ln -s "${AVR_NM}" ${CCACHE_WRAPPER_DIR}/${COMPILER_PREFIX}nm ln -s "${AVR_NM}" ${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}nm
ln -s "${AVR_OBJCOPY}" ${CCACHE_WRAPPER_DIR}/${COMPILER_PREFIX}objcopy ln -s "${AVR_OBJCOPY}" ${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}objcopy
ln -s "${AVR_AR}" ${CCACHE_WRAPPER_DIR}/${COMPILER_PREFIX}ar ln -s "${AVR_AR}" ${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}ar
ln -s "${AVR_SIZE}" ${CCACHE_WRAPPER_DIR}/${COMPILER_PREFIX}size ln -s "${AVR_SIZE}" ${CCACHE_WRAPPER_PATH}/${COMPILER_PREFIX}size
fi fi
export CCACHE_PATH=${COMPILER_PATH}/ export CCACHE_PATH=${COMPILER_PATH}/
CCACHE_ENABLE="-prefs compiler.path=${CCACHE_WRAPPER_DIR}/" CCACHE_ENABLE="-prefs compiler.path=${CCACHE_WRAPPER_PATH}/"
fi fi
} }

Loading…
Cancel
Save