Skip to content

Commit

Permalink
DOC: More background for supported compilers
Browse files Browse the repository at this point in the history
Provide more background and guidance on the standard per-operating system compilers and pointers on how to install them.
  • Loading branch information
thewtex authored Feb 11, 2024
1 parent a5d9526 commit c46aaf3
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion Documentation/docs/supported_compilers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,27 @@

ITK requires a compiler with C++17 support.

The standard compilers for common operating systems are:

- Windows: [Visual Studio](#visual-studio)
- Linux: [GCC](#gnu-compiler-collection)
- macOS: [AppleClang](#appleclang)

## Visual Studio

Visual Studio includes the MSVC compiler. It can be installed for free with the [*Visual Studio Community Edition*](https://visualstudio.microsoft.com/vs/community/) application. The paid version is [*Visual Studio Professional Edition*](https://visualstudio.microsoft.com/vs/professional/). Note that [*Visual Studio Code (aka VS Code)*](https://code.visualstudio.com/) is a different project and **does not** include a C++ compiler by default.

* VS2017 and earlier: **NOT supported**
* MSVC toolset v142 (first shipped with VS2019): supported
* MSVC toolset v143 (first shipped with VS2022): supported

## GNU Compile Collection
## GNU Compiler Collection

GCC is installed on Ubuntu Linux with:

```sh
apt install build-essential
```

* GCC 7 and later [should be supported](https://www.gnu.org/software/gcc/projects/cxx-status.html).

Expand All @@ -17,9 +31,19 @@ ITK requires a compiler with C++17 support.
* Clang 5 and later [should be supported](https://clang.llvm.org/cxx_status.html)

## AppleClang

AppleClang is included with the XCode application and is available from the Apple App Store.

To trigger installation of the Xcode Command Line tools, run:

```sh
xcode-select --install
```

* AppleClang 10.0.0 and later (from Xcode 10.0) [should be supported](https://en.wikipedia.org/wiki/Xcode#Version_history)

## Intel C++ Compiler

* Intel C++ 19.1 and later

## Future versions
Expand Down

0 comments on commit c46aaf3

Please sign in to comment.