XCore target add toolchain
Richard Osborne
richard at xmos.com
Wed Oct 9 08:27:52 PDT 2013
On 07/10/13 16:43, Robert Lytton wrote:
> Hi
>
> This is a patch to enable clang to call the xcore 'xcc' tool chain for
> assembly and linking.
> Also sets appropriate paths.
>
> Robert
+ if (const char *cl_include_dir = getenv("XCC_C_INCLUDE_PATH")) {
+ SmallVector<StringRef, 4> Dirs;
+ StringRef(cl_include_dir).split(Dirs, ":");
On Windows ';' is used to separate paths so this needs to be made
conditional on OS somehow. Looks good to me otherwise (at least from a
XCore point of view - I'm not hugely familiar with clang).
--
Richard Osborne | XMOS
http://www.xmos.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131009/f8d7093e/attachment.html>
More information about the cfe-commits
mailing list