[llvm-dev] Layering Requirements in the LLVM Coding Style Guide

Robinson, Paul via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 17 11:24:53 PST 2018


Looking at build-procedure files for link-order hints is technically "written down" but not really human-friendly and not at all what I had in mind. ☺
I get that writing it down on a doc page will have the usual bit-rot problems, but if you want to tell developers (especially newer developers) "get the layering right" you really need to point to a place that says what the layering *is*.  Maybe you were agreeing to do that, but I'm not sure.
--paulr
I have found layering to be a particularly useful and beneficial model in past large software projects.
Is LLVM's layering actually written down anywhere?  Last time I went looking, there was nothing.  If there's no spec, there's no verifiable conformance; you have to guess based on what other files do.

Fair point - Google's build system is pretty specific about this & so we've got it codified there, and the open source build system has to know some of this to get the link order right - otherwise LLVM programs couldn't successfully link (if the libraries weren't placed in the right order on the link command)

I think the the LLVMBuild.txt files contain the library dependency lists for the CMake build.

- Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180117/6340cee1/attachment-0001.html>


More information about the llvm-dev mailing list