Skip to content

Commit

Permalink
dev-libs/hyperscan: set release build type and respect O flags
Browse files Browse the repository at this point in the history
CMAKE_BUILD_TYPE=Release disables -Werror flag which used to trigger
false positive error in GCC-10.

intel/hyperscan#239

Closes: https://bugs.gentoo.org/722802
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
  • Loading branch information
arkamar committed May 15, 2020
1 parent 1416ed3 commit 5922188
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-libs/hyperscan/hyperscan-5.2.1-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ PATCHES=(
)

src_prepare() {
# Respect user -O flags
sed -i '/set(OPT_CX*_FLAG/d' CMakeLists.txt || die

# upstream workaround
append-cxxflags -Wno-redundant-move
cmake_src_prepare
}

src_configure() {
CMAKE_BUILD_TYPE=Release

use cpu_flags_x86_ssse3 && append-flags -mssse3
use cpu_flags_x86_avx2 && append-flags -mavx2

Expand Down

0 comments on commit 5922188

Please sign in to comment.