<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 18, 2015 at 5:46 PM Hal Finkel <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">----- Original Message -----<br>
> From: "Eric Christopher" <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>><br>
> To: "John Criswell" <<a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@gmail.com</a>>, <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>, "Chris Bieneman" <<a href="mailto:beanz@apple.com" target="_blank">beanz@apple.com</a>><br>
> Sent: Thursday, June 18, 2015 7:14:06 PM<br>
> Subject: Re: [LLVMdev] Long-Term Support for LLVM Projects Extension to Build System?<br>
><br>
><br>
> On Thu, Jun 18, 2015 at 5:07 PM John Criswell < <a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@gmail.com</a> ><br>
> wrote:<br>
><br>
><br>
> On 6/18/15 6:49 PM, Eric Christopher wrote:<br>
><br>
><br>
><br>
> Hi John,<br>
><br>
><br>
> Long term we don't want to keep the burden of two build systems in<br>
> tree. CMake is turning out to be the build system we want because of<br>
> its multi-platform support, etc and as soon as the CMake system can<br>
> do everything we can do with the autoconf/makefile build I plan on<br>
> turning down the support for that and removing the code.<br>
><br>
> Thanks, but I wasn't asking about autoconf vs. cmake.<br>
><br>
><br>
><br>
><br>
> Well, you are, but only sorta.<br>
><br>
><br>
><br>
> I'm wanting to know whether the ability to "plug into" the LLVM build<br>
> system by external projects will be maintained. For example,<br>
> SAFECode doesn't have its own build system; it uses LLVM's, and it<br>
> does so without being a "patch" to the LLVM source tree. You can put<br>
> the SAFECode source code anywhere you like, use LLVM-style Makefiles<br>
> in its source code, and build it. All of the PROJ_SRC_ROOT,<br>
> PROJ_OBJ_ROOT magic in the autoconf build system is what permits<br>
> that feature to work.<br>
><br>
> Do you intend to keep this functionality when you replace autoconf<br>
> with cmake, or will all projects that want to use the LLVM build<br>
> system need to place their source code in the LLVM source tree? To<br>
> put it another way, do you intend to deprecate the<br>
> PROJ_SRC_ROOT/PROJ_OBJ_ROOT stuff?<br>
><br>
> While I've enjoyed the PROJ_* magic, I can see why you'd want to get<br>
> rid of it. I just want to ensure that you are not planning on<br>
> replacing it.<br>
><br>
><br>
> Right. So this is a "autoconf/makefile build system vs cmake build<br>
> system" question as the Makefiles would, theoretically, all go away<br>
> at the end. I don't think anyone has plans of replacing this<br>
> functionality (Chris?), but migrating out of tree projects to hook<br>
> in via modifying the cmake build locally shouldn't be too bad.<br>
><br>
<br>
This is also related to the metapoint that the cmake build system doesn't glob for source files (or anything else), unlike the makefile build system. This is understandable given the constraints, but we might want to restore some of that functionality for the purpose of supporting out-of-tree projects.<br>
<br>
What I mean specifically, is that, for example, we could have a normally-empty directory tools/extensions, and tools/CMakeLists.txt could glob for directories in tools/extensions and call add_llvm_tool_subdirectory on all of them. It is true that you'd need to re-run cmake whenever you added something there (we could have a README in that directory to remind people of that), but that seems like a much smaller price than having to maintain a patched version of the upstream sources.<br>
<br></blockquote><div><br></div><div>Sure, seems reasonable to me. I'm not working on the cmake transition so I'm just answering as far as "things I plan on deleting when I can delete" :)</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-Hal<br>
<br>
><br>
> -eric<br>
><br>
><br>
><br>
><br>
><br>
> Regards,<br>
><br>
> John Criswell<br>
><br>
><br>
><br>
><br>
><br>
><br>
> Thanks!<br>
><br>
><br>
> -eric<br>
><br>
><br>
><br>
> On Thu, Jun 18, 2015 at 4:47 PM John Criswell < <a href="mailto:jtcriswel@gmail.com" target="_blank">jtcriswel@gmail.com</a> ><br>
> wrote:<br>
><br>
><br>
> Dear All,<br>
><br>
> Will the LLVM project system (the extension to the build system that<br>
> allows sub-projects to reuse the LLVM Makefiles) be maintained long<br>
> term, or is the slow push to CMake intending to deprecate this<br>
> functionality?<br>
><br>
> We used this feature a lot for research projects at UIUC, but if the<br>
> current maintainers of the build system are planning on deprecating<br>
> it,<br>
> I'll have my students avoid using it.<br>
><br>
> Regards,<br>
><br>
> John Criswell<br>
><br>
> --<br>
> John Criswell<br>
> Assistant Professor<br>
> Department of Computer Science, University of Rochester<br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=9CSAjybX-y3JIwroguemtjDcGe57fHu5IvJdo33QVxc&s=u4DcBurBHooa1TMKPvZ6VfZhkx_wc3UIIk6gXeHJIAs&e=" rel="noreferrer" target="_blank">http://www.cs.rochester.edu/u/criswell</a><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
><br>
> --<br>
> John Criswell<br>
> Assistant Professor<br>
> Department of Computer Science, University of Rochester<br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=9CSAjybX-y3JIwroguemtjDcGe57fHu5IvJdo33QVxc&s=u4DcBurBHooa1TMKPvZ6VfZhkx_wc3UIIk6gXeHJIAs&e=" rel="noreferrer" target="_blank">http://www.cs.rochester.edu/u/criswell</a><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
<br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</blockquote></div></div>