File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3434fi
3535export OS_NAME
3636
37- ARDUINO_BUILD_DIR=" $HOME /.arduino/build.tmp"
3837ARDUINO_CACHE_DIR=" $HOME /.arduino/cache.tmp"
3938
4039if [ " $OS_IS_MACOS " == " 1" ]; then
@@ -100,7 +99,8 @@ function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
10099
101100 # echo ""
102101 # echo "Compiling '"$(basename "$sketch")"' ..."
103- mkdir -p " $ARDUINO_BUILD_DIR "
102+ build_dir=" $( dirname $sketch ) /build"
103+ mkdir -p " $build_dir "
104104 mkdir -p " $ARDUINO_CACHE_DIR "
105105 $ARDUINO_IDE_PATH /arduino-builder -compile -logger=human -core-api-version=10810 \
106106 -fqbn=$fqbn \
@@ -112,7 +112,7 @@ function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
112112 -hardware " $ARDUINO_USR_PATH /hardware" \
113113 -libraries " $ARDUINO_USR_PATH /libraries" \
114114 -build-cache " $ARDUINO_CACHE_DIR " \
115- -build-path " $ARDUINO_BUILD_DIR " \
115+ -build-path " $build_dir " \
116116 $win_opts $xtra_opts " $sketch "
117117}
118118
You can’t perform that action at this time.
0 commit comments