Skip to content

Commit a13377d

Browse files
committed
Publish the toolchain support matrix
docs/Toolchain_Policy.md lists the minimum GCC, CMake, Clang, Apple Clang and MSVC versions for building the SDK. GCC and CMake follow the oldest supported Amazon Linux, today Amazon Linux 2. Clang, Apple Clang and MSVC start at their first release with all of C++17's core language features. The README's minimum requirements list the same versions and link to the policy.
1 parent 0fe7edd commit a13377d

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "documentation",
3+
"category": "docs",
4+
"contributor": "sbiscigl",
5+
"description": "Add a toolchain policy with the minimum GCC, Clang, Apple Clang, MSVC and CMake versions for building the SDK, and how each one is set. The README's minimum requirements now list the same versions."
6+
}

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ AWS SDK for C++ is now in General Availability and recommended for production us
1616

1717
### Minimum Requirements:
1818
* A compiler with C++17 support
19-
* Visual Studio 2017 or later
20-
* OR GNU Compiler Collection (GCC) 7.3 or later
19+
* GNU Compiler Collection (GCC) 7.3 or later
2120
* OR Clang 5 or later
21+
* OR Apple Clang 9.1 (Xcode 9.3) or later
22+
* OR Visual Studio 2017 version 15.7 or later
2223
* CMake 3.17 or later
2324
* 4GB of RAM (required for building some of the larger clients; SDK build may fail on EC2 instance types t2.micro, t2.small, and other small instance types due to insufficient memory)
2425
* Supported platforms
2526
* Amazon Linux
2627
* Windows
2728
* Mac
2829

30+
These minimums follow the SDK's [toolchain policy](./docs/Toolchain_Policy.md).
31+
2932
### Building From Source:
3033

3134
#### To create an **out-of-source build**:
@@ -153,6 +156,7 @@ Please make sure to check out our resources too before opening an issue:
153156
# Using the SDK and Other Topics
154157
* Other docs for how to build the sdk
155158
* [CMake Parameters](./docs/CMake_Parameters.md)
159+
* [Toolchain policy](./docs/Toolchain_Policy.md)
156160
* [Add as CMake external project](./docs/CMake_External_Project.md)
157161
* [Building for Docker](https://github.com/aws/aws-sdk-cpp/tree/master/CI/docker-file) (To build for Docker, ensure your container meets the [minimum requirements](#minimum-requirements))
158162
* [Building on an EC2 instance](https://github.com/aws/aws-sdk-cpp/wiki/Building-the-SDK-from-source-on-EC2)

‎docs/Toolchain_Policy.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Toolchain Policy
2+
3+
The AWS SDK for C++ is written in C++17, and C++17 is the oldest standard it builds with. You can build with a newer standard by setting `CMAKE_CXX_STANDARD`, for example to 20.
4+
5+
Amazon Linux is the SDK's main platform, so it's what our minimums are based on. The minimum GCC and CMake versions are the ones that ship with the oldest Amazon Linux we support. They go up only when that Amazon Linux reaches end of support, not when a compiler or CMake version gets old. Today the oldest is Amazon Linux 2.
6+
7+
The SDK supports Clang, Apple Clang and MSVC as well, so it builds on macOS and Windows, not just Linux. Their minimums don't come from Amazon Linux. For each one, it's the first version with all of C++17's core language features.
8+
9+
| Toolchain | Minimum | Why |
10+
| --- | --- | --- |
11+
| GCC | 7.3 | Amazon Linux 2's `gcc` |
12+
| CMake | 3.17 | Amazon Linux 2's `cmake3` |
13+
| Clang | 5 | First release with all of C++17's core language features |
14+
| Apple Clang | 9.1 (Xcode 9.3) | First release based on Clang 5 |
15+
| MSVC | 19.14 (Visual Studio 2017 version 15.7) | First release with all of C++17's core language features |

0 commit comments

Comments
 (0)