From 53b0dd177784d5302b14ae4bdbb2fbeb98fe1a00 Mon Sep 17 00:00:00 2001 From: smlng Date: Thu, 16 Mar 2017 20:19:30 +0100 Subject: [PATCH] make: set default toolchain for board native on macOS to llvm --- Makefile.include | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 77f021992d..3c19baad5d 100644 --- a/Makefile.include +++ b/Makefile.include @@ -153,7 +153,12 @@ ifneq (0,$(shell test -d $(RIOTBOARD)/$(BOARD); echo $$?)) endif # Use TOOLCHAIN environment variable to select the toolchain to use. -# Default: gnu +# Default for macOS: llvm; for other OS: gnu +ifeq ($(BOARD),native) +ifeq ($(OS),Darwin) +TOOLCHAIN ?= llvm +endif +endif TOOLCHAIN ?= gnu # TOOLCHAIN = clang is an alias for TOOLCHAIN = llvm