[riot-notifications] [RIOT] cortexm: Add support for building with LLVM/Clang (#3119)

Joakim Gebart notifications at github.com
Mon Jun 1 14:19:23 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.

added a comment about Arch, addressed

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3119/files#r31419998
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150601/ddf39bc7/attachment.html>


More information about the notifications mailing list