You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# (Experimental!) Specify "-DALLOW_APPLECLANG=ON" when running CMake configuration step, if you want to experiment with using it.
22
-
if (NOT ALLOW_APPLECLANG ANDNOTDEFINED ENV{ALLOW_APPLECLANG})
23
-
message (FATAL_ERROR"Compilation with AppleClang is unsupported. Please use vanilla Clang, e.g. from Homebrew.")
24
-
endif ()
25
-
26
-
# For a mapping between XCode / AppleClang / vanilla Clang versions, see https://en.wikipedia.org/wiki/Xcode
27
-
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS${APPLE_CLANG_MINIMUM_VERSION})
28
-
message (FATAL_ERROR"Compilation with AppleClang version ${CMAKE_CXX_COMPILER_VERSION} is unsupported, the minimum required version is ${APPLE_CLANG_MINIMUM_VERSION} (Xcode ${XCODE_MINIMUM_VERSION}).")
29
-
endif ()
30
-
else ()
31
-
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS${CLANG_MINIMUM_VERSION})
32
-
message (FATAL_ERROR"Compilation with Clang version ${CMAKE_CXX_COMPILER_VERSION} is unsupported, the minimum required version is ${CLANG_MINIMUM_VERSION}.")
33
-
endif ()
16
+
set (CLANG_MINIMUM_VERSION 19)
17
+
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS${CLANG_MINIMUM_VERSION})
18
+
message (FATAL_ERROR"Compilation with Clang version ${CMAKE_CXX_COMPILER_VERSION} is unsupported, the minimum required version is ${CLANG_MINIMUM_VERSION}.")
For Apple XCode Clang (discouraged), install the latest [XCode](https://apps.apple.com/am/app/xcode/id497799835?mt=12) the from App Store.
31
-
Open it at least once to accept the end-user license agreement and automatically install the required components.
32
-
Then, make sure that the latest Command Line Tools are installed and selected in the system:
For other Linux distributions, check if you can install any of LLVM's [prebuild packages](https://releases.llvm.org/download.html).
48
48
49
-
As of January 2025, Clang 18 or higher is required.
49
+
As of March 2025, Clang 19 or higher is required.
50
50
GCC or other compilers are not supported.
51
51
52
52
## Install the Rust compiler (optional) {#install-the-rust-compiler-optional}
Copy file name to clipboardExpand all lines: docs/en/development/style.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -740,7 +740,7 @@ But other things being equal, cross-platform or portable code is preferred.
740
740
741
741
**2.** Language: C++20 (see the list of available [C++20 features](https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B20_features)).
742
742
743
-
**3.** Compiler: `clang`. At the time of writing (July 2022), the code is compiled using clang version >= 12. (It can also be compiled using `gcc`, but it's untested and not suitable for production usage).
743
+
**3.** Compiler: `clang`. At the time of writing (March 2025), the code is compiled using clang version >= 19.
0 commit comments