This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 842392beda7c9e55c5191431d884704b12e6b808 Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Thu Feb 13 13:31:55 2020 +0900 Makefile.host: Use generic name (cc) than GCC specific (gcc) This makes it easier to use clang on ubuntu. --- tools/Makefile.host | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/Makefile.host b/tools/Makefile.host index 71e87e5..f67e182 100644 --- a/tools/Makefile.host +++ b/tools/Makefile.host @@ -54,11 +54,12 @@ HOSTCFLAGS ?= -O2 -Wall -Wstrict-prototypes -Wshadow -I. -DCONFIG_WINDOWS_NATIVE else -# GCC is assumed in all other POSIX environments (Linux, Cygwin, MSYS2). +# GCC or clang is assumed in all other POSIX environments +# (Linux, Cygwin, MSYS2, macOS). # strtok_r is used in some tools, but does not seem to be available in # the MinGW environment. -HOSTCC ?= gcc +HOSTCC ?= cc HOSTCFLAGS ?= -O2 -Wall -Wstrict-prototypes -Wshadow -I. HOSTCFLAGS += -DHAVE_STRTOK_C=1