[s2n] disable -Werror for gcc 11 build (#22446)

s2n fails to build with gcc 11 (see
https://github.com/aws/s2n-tls/issues/2989) due to problematic type
declarations which generate compiler warnings, coupled with the fact
that s2n builds with -Werror by default. The underlying bug is not yet
fixed upstream.

Building with -Werror is not helpful for an end user trying to use s2n
from vcpkg, since a build failure like this is not actionable. This
change therefore uses the UNSAFE_TREAT_AS_ERRORS=OFF option to disable
-Werror.
This commit is contained in:
Clayton Wheeler 2022-01-10 15:12:17 -06:00 committed by GitHub
parent 4c570f2b8d
commit 9f69089cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,7 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DUNSAFE_TREAT_WARNINGS_AS_ERRORS=OFF
)
vcpkg_cmake_install()

View File

@ -1,6 +1,7 @@
{
"name": "s2n",
"version": "1.3.0",
"port-version": 1,
"description": "C99 implementation of the TLS/SSL protocols.",
"homepage": "https://github.com/aws/s2n-tls",
"supports": "!uwp & !windows",

View File

@ -6166,7 +6166,7 @@
},
"s2n": {
"baseline": "1.3.0",
"port-version": 0
"port-version": 1
},
"safeint": {
"baseline": "3.0.26",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7cb2325defd326de178cf524bd5db039ff1dc112",
"version": "1.3.0",
"port-version": 1
},
{
"git-tree": "a8252a918117164e1f6472663244fda74690f849",
"version": "1.3.0",