<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>I did look at that and it doesn't work. Here is the line from the Makefile: <a href="https://github.com/tannewt/circuitpython/blob/clang/atmel-samd/Makefile#L300">https://github.com/tannewt/circuitpython/blob/clang/atmel-samd/Makefile#L300</a><br></div>
<div><br></div>
<div>And here is it as output from make:<br></div>
<div>clang version 5.0.0 (trunk 301735)<br></div>
<div>Target: armv6m-none--eabi<br></div>
<div>Thread model: posix<br></div>
<div>InstalledDir: /Users/tannewt/repos/llvm/build/bin<br></div>
<div>"gcc" -flto -v -fuse-ld=lld -march=thumb...<br></div>
<div>clang-5.0: error: unable to execute command: Executable "gcc" doesn't exist!clang-5.0: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)<br></div>
<div><br></div>
<div>On Sun, Apr 30, 2017, at 03:28 PM, Rui Ueyama wrote:<br></div>
<blockquote type="cite"><div dir="ltr">Did you read <a href="http://lld.llvm.org/#using-lld">http://lld.llvm.org/#using-lld</a>? In short, you want to pass -use-ld=lld to clang to use ld.lld instead of ld.<br></div>
<div><div><br></div>
<div><div>On Sun, Apr 30, 2017 at 3:18 PM, Scott Shawcroft via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div>Hi all,<br></div>
<div>I've been doing a ton of embedded work (bare metal ARM Cortex M0+ and<br></div>
<div>M4, hopefully RISCV in the future) in the last year and would love to<br></div>
<div>start using and hacking on the llvm toolchain. I've tried setting up<br></div>
<div>clang + lld but can't get lld to work because clang tries to launch gcc.<br></div>
<div>I realize support is early but I'd love to have a dev setup so I can<br></div>
<div>help fix things.<br></div>
<div><br></div>
<div>Could some help me setup my Makefiles in this project:<br></div>
<div><a href="https://github.com/tannewt/circuitpython/tree/clang">https://github.com/tannewt/<wbr>circuitpython/tree/clang</a> to use dev builds of<br></div>
<div>clang and lld? Thanks!<br></div>
<div>~Scott<br></div>
<div>______________________________<wbr>_________________<br></div>
<div>LLVM Developers mailing list<br></div>
<div><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br></div>
<div><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br></div>
</blockquote></div>
</div>
</blockquote><div><br></div>
</body>
</html>