[riot-notifications] [RIOT] cortexm: Add support for building with LLVM/Clang (#3119)
notifications at github.com
Mon Jun 1 13:13:17 CEST 2015
> +# On OSX, newlib includes are possibly located in
> +# /usr/local/opt/arm-none-eabi*/arm-none-eabi/include
> +NEWLIB_INCLUDE_PATTERNS ?= \
> + /etc/alternatives/gcc-$(TARGET_TRIPLE)-include \
> + /usr/$(TARGET_TRIPLE)/include \
> + /usr/local/opt/$(TARGET_TRIPLE)*/$(TARGET_TRIPLE)/include \
> + #
> +# Use the wildcard Makefile function to search for existing directories matching
> +# the patterns above. We use the -isystem gcc/clang argument to add the include
> +# directories as system include directories.
> +NEWLIB_INCLUDES ?= \
> + $(foreach dir, \
> + $(foreach pat, $(NEWLIB_INCLUDE_PATTERNS), $(wildcard $(pat))), \
> + -isystem $(dir))
> +export INCLUDES += $(NEWLIB_INCLUDES)
> Is newlib an actual module that can be tested for in USEMODULE?
Yes, and if selected, it adds syscalls.o to the linker files. Actually, this newlib handling could maybe be moved to sys/newlib/Makefile.include.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications