<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 8, 2019, at 2:44 PM, Joel E. Denny via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Jan 8, 2019 at 5:14 PM David Greene <<a href="mailto:dag@cray.com" class="">dag@cray.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"Joel E. Denny via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a>> writes:<br class="">
<br class="">
> Do other Clang developers find BUILD_SHARED_LIBS=True useful? Do you<br class="">
> see the above failures? Should there be a bot to test that build<br class="">
> configuration?<br class="">
<br class="">
I don't use BUILD_SHARED_LIBS=True</blockquote><div class=""><br class=""></div><div class="">One point I'd like to understand is why more people don't use it.  Were you not aware of it, or is it just not beneficial enough to you?  I was very happy to reduce a nearly 4-minute rebuild after a minor change to ~31 sec.  Especially when I have to do that repeatedly, that time difference can determine whether I decide to switch contexts or stay focused.<br class=""></div></div></div></div></blockquote><div><br class=""></div><div>How much of that rebuild time is actually link time? I'd guess most. What linker are you using? ld64, lld and gold are all much faster than bfd, so the performance implications may be smaller to other people. Also, using `BUILD_SHARED_LIBS` has a significant impact on execution performance of the final binaries, which impacts test execution speed. So if you aren't struggling with link time, it can be overall better to generate faster loading binaries for the test suite.</div><div><br class=""></div><div>There are a lot of tradeoffs on performance, but I've strongly advocated that BUILD_SHARED_LIBS should never be used when building distributions for performance reasons, which means it is only really supported as a developer workflow.</div><div><br class=""></div><div>Additionally BUILD_SHARED_LIBS is problematic with some of LLVM's design patterns, like cl::opt's global registration, which can deter its usefulness.</div><div><br class=""></div><div>Hope this helps explain why it is less widely used than you might have anticipated.</div><div><br class=""></div><div>-Chris</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_quote"><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> but if that's a supported option, it<br class="">
should be tested.<br class="">
<br class="">
This argument will, of course, lead to an explosion of builders, as the<br class="">
set of combinations of cmake variables is very large.  It would be<br class="">
useful to gather the various configurations people use and see if there<br class="">
is a set of common-ish combinations that is small enough to regularly<br class="">
test.<br class="">
<br class="">
We build with RTTI and exceptions enabled and I'll bet there are others<br class="">
out there that do the same.  But AFAIK there are no bots testing those<br class="">
options.<br class=""></blockquote><div class=""><br class=""></div><div class="">To reduce the configuration space, we could consider combining orthogonal options under a single builder.  That could make debugging some fails a little harder, but it might be worthwhile as it would provide more coverage with less builders.<br class=""></div><div class=""><br class=""></div><div class="">Thanks.<br class=""></div><div class=""><br class=""></div><div class="">Joel<br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br class="">
                             -David<br class="">
<br class="">
</blockquote></div></div>
_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></body></html>