From 65e4431b6bdc70cb4d1c7b1932166865f19cbcd8 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 15 Nov 2020 16:05:12 -0800 Subject: [PATCH] remove a bunch of environment variables that we no longer need, since we're not using ccache --- bin/kaleidoscope-builder | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 08c7e4a3..bc0e21b1 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -62,28 +62,11 @@ _arduino_props() { _set_executable_paths() { - uname_S=$(uname -s 2>/dev/null || echo not) - - if [ "${ARCH}" = "virtual" ]; then - if [ "${uname_S}" = "FreeBSD" ]; then - : "${COMPILER_PATH:=/usr/local/bin/}" - else - : "${COMPILER_PATH:=/usr/bin/}" - fi - COMPILER_PREFIX="" - fi - # Allow the compiler path to be empty for virtual builds # should use compiler.path instead of appending bin, but we don't have substitution het : "${COMPILER_PATH=$(_arduino_prop 'runtime.tools.avr-gcc.path')/bin}" - COMPILER_SUFFIX="" - - C_COMPILER_BASENAME=$(basename "${CC:-gcc}") - CXX_COMPILER_BASENAME=$(basename "${CXX:-g++}") - AR_BASENAME=$(basename "${AR:-ar}") - # Allow the compiler prefix to be empty for virtual builds COMPILER_PREFIX="${COMPILER_PREFIX-avr-}" : "${AVR_OBJDUMP:=${COMPILER_PATH}/${COMPILER_PREFIX}objdump}" @@ -191,10 +174,6 @@ cmd_compile() { fi fi - _CMD_CXX="${CXX:-${COMPILER_PREFIX}${CXX_COMPILER_BASENAME}${COMPILER_SUFFIX}}" - _CMD_CC="${CC:-${COMPILER_PREFIX}${C_COMPILER_BASENAME}${COMPILER_SUFFIX}}" - _CMD_AR="${AR:-${COMPILER_PREFIX}${AR_BASENAME}${COMPILER_SUFFIX}}" - # shellcheck disable=SC2086 _run_arduino_cli compile \ --fqbn "${FQBN}" \ @@ -202,11 +181,6 @@ cmd_compile() { --build-path "${BUILD_PATH}" \ --output-dir "${OUTPUT_PATH}" \ --build-cache-path "${CORE_CACHE_PATH}" \ - --build-properties "compiler.path=${COMPILER_PATH}/" \ - --build-properties "compiler.c.cmd=${_CMD_CC}" \ - --build-properties "compiler.cpp.cmd=${_CMD_CXX}" \ - --build-properties "compiler.ar.cmd=${_CMD_AR}" \ - --build-properties "compiler.c.elf.cmd=${_CMD_CXX}" \ --build-properties "compiler.cpp.extra_flags=${LOCAL_CFLAGS}" \ --warnings all ${ARDUINO_VERBOSE} \ "${SKETCH_FILE_PATH}"