dev-python/cymem: fix flags

Closes: https://bugs.gentoo.org/887653
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-12-25 22:53:22 +05:00
parent 4c5fbb6ac9
commit cdbb13625d
2 changed files with 15 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ KEYWORDS="~amd64 ~x86"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
PATCHES=( "${FILESDIR}"/cymem-2.0.7-flags.patch )
distutils_enable_tests pytest
python_test() {

View File

@@ -0,0 +1,13 @@
Don't overwrite user optimizations
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ MOD_NAMES = ["cymem.cymem"]
# http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used
compile_options = {
"msvc": ["/Ox", "/EHsc"],
- "other": ["-O3", "-Wno-strict-prototypes", "-Wno-unused-function"],
+ "other": ["-Wno-strict-prototypes", "-Wno-unused-function"],
}
link_options = {"msvc": [], "other": []}