<div dir="ltr">On Tue, Jun 21, 2016 at 2:37 PM, Chris Bieneman via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">beanz updated this revision to Diff 61451.<br>
beanz added a comment.<br>
<br>
I kinda went a bit off into the woods after the llvm-dev thread, and I think I came back with something either interesting or insane... you decide.<br>
<br>
This patch changed a few things about how I'm handling the runtimes subdirectory. First, it handles the compiler-rt builtin library dependency by building the builtins first as their own external project call. Second, it glumps all the other runtime libraries (including compiler-rt's sanitizers) into a single external project by using the runtimes/CMakeLists.txt file as the top-level CMake.<br></blockquote><div><br></div><div>Is the intent that the sanitizer runtimes and the C++ runtime would be a single project?  If so, that seems a bit imprecise.  However, this is engineering, and if it does result in a more maintainable system, it may be worth it.  The builtins definitely need to be pulled out into a separate project.  It feels like the right layering here would be something like:</div><div><br></div><div>builtins</div><div>unwind</div><div>sanitizers</div><div>libc++abi / libc++</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is interesting for a few reasons. The biggest is a potential for reduced CMake-overhead when building runtime libraries. Additionally it will allow cross-project dependencies to be  more easily modeled in CMake because the runtime libraries will be able to be aware of the targets coming from other runtime projects.<br>
<br>
Thoughts?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D20992" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20992</a><br>
<br>
Files:<br>
  CMakeLists.txt<br>
  cmake/modules/LLVMExternalProjectUtils.cmake<br>
  runtimes/CMakeLists.txt<br>
<br>
</div></div><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</div></div>