Skip to content

Commit

Permalink
Check if AVR Toolchain exits in the PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
enekochan committed Aug 31, 2020
1 parent fd6bea0 commit 0fd6135
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile.common
Expand Up @@ -48,9 +48,7 @@ CORE_CFLAGS = -DAVR_CORE=1
ifeq (${shell uname}, Darwin)
# If AVR Toolchain was installed from Microchip binaries
ifneq (, $(shell which avr-gcc))
CC = clang
AVR_ROOT := $(shell which avr-gcc | awk -F'bin/' '{ print $$1 }')
AVR := ${AVR_ROOT}/bin/avr-
AVR := avr-
else
# gcc 4.2 from MacOS is really not up to scratch anymore
CC = clang
Expand Down

0 comments on commit 0fd6135

Please sign in to comment.