<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 4:53 PM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">>> That is probably fine. Note that we always try to make llvm and clang<br>
>> build options be just the default value of a runtime option. Not sure<br>
>> if that would be strictly needed in here since the compile time option<br>
>> would just be what -flto is during link time.<br>
><br>
><br>
> Could we just detect whether the linker is gold in the driver?<br>
><br>
> That would let us:<br>
><br>
> 1) produce an error if using BFD ld and -flto<br>
> 2) pass the plugin argument safely in all cases where it would be useful<br>
<br>
</div>Current versions of BFD support plugins. Gold (and BFD) can also be<br>
compiled without plugin support, so the detection is not trivial. We<br>
would also have to run the linker twice, no? Once to find if it<br>
supports plugins and then again to actually link.</blockquote></div><br>Bleh. That's rather annoying.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I don't have any good ideas here (other than "LLD will fix this!" which isn't terribly helpful). I wonder if the current behavior isn't the best default.</div>
</div>