Skip to content

Commit

Permalink
esp32: Add check to Makefile that the toolchain is in PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmo authored and dpgeorge committed Sep 17, 2019
1 parent 970f798 commit f469634
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ports/esp32/Makefile
Expand Up @@ -103,6 +103,13 @@ endif
# pretty format of ESP IDF version, used internally by the IDF
IDF_VER := $(shell git -C $(ESPIDF) describe)

ifeq ($(shell which $(CC) 2> /dev/null),)
$(info ** ERROR **)
$(info Cannot find C compiler $(CC))
$(info Add the xtensa toolchain to your PATH. See README.md)
$(error C compiler missing)
endif

# include sdkconfig to get needed configuration values
include $(SDKCONFIG)

Expand Down

0 comments on commit f469634

Please sign in to comment.