Skip to content

Commit 8aff7fa

Browse files
committed
Document Policy on supporting newer C++ standard in LLVM codebase
See RFC: https://discourse.llvm.org/t/policy-on-supporting-newer-c-standard-in-llvm-codebase/88114
1 parent 7949c2a commit 8aff7fa

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

llvm/docs/CMake.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ explanation and LLVM-related notes. For full documentation, consult the CMake
280280
manual, or execute ``cmake --help-variable VARIABLE_NAME``.
281281

282282
**CMAKE_CXX_STANDARD**:STRING
283-
Sets the C++ standard to conform to when building LLVM. Possible values are
284-
17 and 20. LLVM requires C++17 or higher. This defaults to 17.
283+
Sets the C++ standard to conform to when building LLVM.
284+
LLVM requires C++17 or higher. This defaults to 17.
285285

286286
**CMAKE_INSTALL_BINDIR**:PATH
287287
The path to install executables, relative to the *CMAKE_INSTALL_PREFIX*.

llvm/docs/CodingStandards.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ Each toolchain provides a good reference for what it accepts:
7878
Additionally, there are compiler comparison tables of supported C++ features on
7979
`cppreference.com <https://en.cppreference.com/w/cpp/compiler_support/17>`_.
8080

81+
To keep track with the evolution of the standard, newer C++ version can be used
82+
to build LLVM. However, our support focuses on the minimum supported C++
83+
version and a very recent standard may not be yet supported, or only using the
84+
latest version of the supported toolchains and possibly not across all the
85+
subprojects.
86+
8187

8288
C++ Standard Library
8389
--------------------

0 commit comments

Comments
 (0)