mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
dev-libs/frozen: strip -Werror
Closes: https://bugs.gentoo.org/974745 Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
33
dev-libs/frozen/files/frozen-1.2.0-strip-Werror.patch
Normal file
33
dev-libs/frozen/files/frozen-1.2.0-strip-Werror.patch
Normal 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)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user