[llvm-dev] [RFC] Toolchain update policy (migrating LLVM past C++11) (original) (raw)

JF Bastien via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 16 15:35:18 PST 2019


Hi C++ enthusiasts!

It’s a new year, so let’s try a new approach in getting LLVM’s codebase past C++11. Instead of discussing toolchain versions and whether C++14 or 17 is best, let’s just focus on one baby step: agreeing on a policy. This policy will be used to update our toolchain, hopefully warning people in LLVM 8 and actually moving past C++11 for LLVM 9.

Good news! I believe we already have agreement on this policy. I went through all the discussions (again) and I think I captured everyone’s points of view and concerns. Here are the discussions: LLVM dev meeting 2018 BoF "Migrating to C++14, and beyond!" <http://llvm.org/devmtg/2018-10/talk-abstracts.html#bof3> A Short Policy Proposal Regarding Host Compilers <http://lists.llvm.org/pipermail/llvm-dev/2018-May/123238.html> Using C++14 code in LLVM (2018) <http://lists.llvm.org/pipermail/llvm-dev/2018-May/123182.html> Using C++14 code in LLVM (2017) <http://lists.llvm.org/pipermail/llvm-dev/2017-October/118673.html> Using C++14 code in LLVM (2016) <http://lists.llvm.org/pipermail/llvm-dev/2016-October/105483.html> Document and Enforce new Host Compiler Policy <http://llvm.org/D47073> Require GCC 5.1 and LLVM 3.5 at a minimum <http://llvm.org/D46723>When replying to this email, please avoid having the same discussions again. Please provide references to anything I might have missed. If you’re making a new point, say so. And don’t assume ill-will, I’m just trying to get us off C++11.

I have a patch for you to review: https://reviews.llvm.org/D56819 <https://reviews.llvm.org/D56819>

Here’s what it currently says our policy should be:

+We intend to require newer toolchains as time goes by. This means LLVM's +codebase can use newer versions of C++ as they get standardized. Requiring newer +toolchains to build LLVM can be painful for those building LLVM, it will +therefore only be done through the following process: +

Thanks,

JF -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190116/21cb8eef/attachment.html>



More information about the llvm-dev mailing list