<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I downloaded </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><a href="http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz" style="font-family:"Georgia,Palatino,Times,Roman";font-size:14.6667px;text-align:left;background-color:rgb(247,247,247)">Clang for macOS</a><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">However if I use -fuse-ld=lld it complains </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">"Unable to find library for -lto_library"</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:21px;white-space:pre"><div><span style="color:rgb(156,220,254)">CLANG</span>       = clang<br></div><div><span style="color:rgb(156,220,254)">CLANG_PATH</span><span style="color:rgb(212,212,212)">  = ~/Downloads/clang+llvm-6.0.0-x86_64-apple-darwin/bin</span></div><div><span style="color:rgb(156,220,254)">CFLAGS</span><span style="color:rgb(212,212,212)">      =</span></div><div><span style="color:rgb(156,220,254)">RM</span><span style="color:rgb(212,212,212)">          = rm -f</span></div><div><span style="color:rgb(156,220,254)">TARGET</span><span style="color:rgb(212,212,212)">      = x86_64-apple-darwin17.4.0</span></div><div><span style="color:rgb(156,220,254)">EXE</span>         = Test.exe<br></div><br><div><span style="color:rgb(220,220,170)">default</span><span style="color:rgb(212,212,212)">: clean all</span></div><br><div><span style="color:rgb(220,220,170)">all</span><span style="color:rgb(212,212,212)">: </span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">EXE</span><span style="color:rgb(206,145,120)">)</span></div><br><div><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">EXE</span><span style="color:rgb(206,145,120)">)</span><span style="color:rgb(212,212,212)">: test.c</span></div><div><span style="color:rgb(212,212,212)">    </span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">CLANG_PATH</span><span style="color:rgb(206,145,120)">)</span><span style="color:rgb(212,212,212)">/</span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">CLANG</span><span style="color:rgb(206,145,120)">)</span><span style="color:rgb(212,212,212)">  -v      \</span></div><div><span style="color:rgb(212,212,212)">    -fuse-ld=lld                    \</span></div><div><span style="color:rgb(212,212,212)">    -target </span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">TARGET</span><span style="color:rgb(206,145,120)">)</span><span style="color:rgb(212,212,212)">               \</span></div><div><span style="color:rgb(212,212,212)">    -o </span><span style="color:rgb(86,156,214)">$@</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(86,156,214)">$<</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">CFLAGS</span><span style="color:rgb(206,145,120)">)</span></div><br><div><span style="color:rgb(220,220,170)">clean</span><span style="color:rgb(212,212,212)">:</span></div><div><span style="color:rgb(212,212,212)">    </span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">RM</span><span style="color:rgb(206,145,120)">)</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">EXE</span><span style="color:rgb(206,145,120)">)</span></div></div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks</div></div>