dev-libs/frozen: strip -Werror

Closes: https://bugs.gentoo.org/974745
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev
2026-05-12 19:37:48 +03:00
parent 0b30f927d3
commit c35d7cb8bc
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
From: Pavel Sobolev <contact@paveloom.dev>
Subject: [PATCH] Strip `-Werror`.
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -28,11 +28,11 @@ string(CONCAT generator
"$<$<OR:$<CXX_COMPILER_ID:GNU>"
",$<CXX_COMPILER_ID:Clang>"
",$<CXX_COMPILER_ID:AppleClang>>"
- ":-Wall;-Wextra;-Wpedantic;-Werror;-Wshadow;"
+ ":-Wall;-Wextra;-Wpedantic;-Wshadow;"
"$<$<BOOL:${frozen.coverage}>:--coverage>>"
"$<$<CXX_COMPILER_ID:Intel>:"
"$<$<PLATFORM_ID:Windows>:/W3;/WX;>"
- "$<$<NOT:$<PLATFORM_ID:Windows>>:-Wall;-Werror>>")
+ "$<$<NOT:$<PLATFORM_ID:Windows>>:-Wall>>")
target_compile_options(frozen.tests PUBLIC ${generator})
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,7 +1,7 @@
SRCS=test_main.cpp test_rand.cpp test_set.cpp test_map.cpp test_unordered_set.cpp test_str_set.cpp test_unordered_str_set.cpp test_unordered_map.cpp test_unordered_map_str.cpp test_str.cpp test_algorithms.cpp
TARGET=test_main
-CXXFLAGS=-O3 -Wall -std=c++14 -march=native -Wextra -W -Werror -Wshadow -fPIC
+CXXFLAGS=-O3 -Wall -std=c++14 -march=native -Wextra -W -Wshadow -fPIC
CPPFLAGS=-I../include
all:$(TARGET)

View File

@@ -17,6 +17,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/${PN}-1.2.0-bump-minimum-required-CMake-version.patch"
"${FILESDIR}/${PN}-1.2.0-strip-Werror.patch"
)
src_configure() {