[riot-notifications] [RIOT] cortexm: Add support for building with LLVM/Clang (#3119)
notifications at github.com
Mon Jun 1 13:07:18 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?
It is listed under PSEUDOMODULES in Makefile.pseudomodules, but I don't know how that part of the build system works.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications