Skip to content

Commit 0fd6135

Browse files
committed
Check if AVR Toolchain exits in the PATH
1 parent fd6bea0 commit 0fd6135

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile.common

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ CORE_CFLAGS = -DAVR_CORE=1
4848
ifeq (${shell uname}, Darwin)
4949
# If AVR Toolchain was installed from Microchip binaries
5050
ifneq (, $(shell which avr-gcc))
51-
CC = clang
52-
AVR_ROOT := $(shell which avr-gcc | awk -F'bin/' '{ print $$1 }')
53-
AVR := ${AVR_ROOT}/bin/avr-
51+
AVR := avr-
5452
else
5553
# gcc 4.2 from MacOS is really not up to scratch anymore
5654
CC = clang

0 commit comments

Comments
 (0)