[riot-notifications] [RIOT] cortexm: Add support for building with LLVM/Clang (#3119)
notifications at github.com
Mon Jun 1 13:05:06 CEST 2015
> +# Tell clang to cross compile
> +export CFLAGS += -target $(TARGET_TRIPLE)
> +export CXXFLAGS += -target $(TARGET_TRIPLE)
> +export LINKFLAGS += -target $(TARGET_TRIPLE)
> +# Since Clang is not installed as a separate instance for each crossdev target
> +# we need to tell it where to look for platform specific includes (Newlib
> +# headers instead of Linux/Glibc headers.)
> +# On GCC this is done when building the cross compiler toolchain so we do not
> +# actually need to specify the include paths for system includes.
> +# Ubuntu gcc-arm-embedded toolchain (https://launchpad.net/gcc-arm-embedded)
> +# places newlib headers in several places, but the primary source seem to be
> +# /etc/alternatives/gcc-arm-none-eabi-include
> +# Gentoo crossdev places newlib headers in /usr/arm-none-eabi/include
> +# Ubuntu also seem to put a copy of the newlib headers in the same place as
> +# Gentoo crossdev, but we prefer to look at /etc/alternatives first.
@kaspar030 so this current search path works on Arch, too?
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications