From b7141ffbc5d0aecdaea3c1d2b95a7b851a28523d Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 11 Jan 2023 09:21:25 +0100 Subject: sci-libs/NNPACK: drop changes to optimization option Closes: https://bugs.gentoo.org/886357 Signed-off-by: Alfredo Tupone --- sci-libs/NNPACK/NNPACK-2020.12.22.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sci-libs') diff --git a/sci-libs/NNPACK/NNPACK-2020.12.22.ebuild b/sci-libs/NNPACK/NNPACK-2020.12.22.ebuild index 986c10b7a447..f8a9435a32cb 100644 --- a/sci-libs/NNPACK/NNPACK-2020.12.22.ebuild +++ b/sci-libs/NNPACK/NNPACK-2020.12.22.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -44,6 +44,11 @@ python_check_deps() { python_has_version "dev-python/PeachPy[${PYTHON_USEDEP}]" } +src_prepare() { + sed -i -e "/-O/d" CMakeLists.txt || die + cmake_src_prepare +} + src_configure() { local mycmakeargs=( -DNNPACK_BUILD_TESTS=$(usex test ON OFF) -- cgit v1.2.3-65-gdbad