dev-python/cython: Build tests with -fno-strict-overflow
authorMichał Górny <mgorny@gentoo.org>
Sun, 29 Apr 2018 11:07:43 +0000 (13:07 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 29 Apr 2018 11:13:23 +0000 (13:13 +0200)
Pass -fno-strict-overflow to work around test failures.

Bug: https://github.com/cython/cython/issues/1911

dev-python/cython/cython-0.28.2.ebuild

index 23c25226c41a521dde1055001b2cbf4369c2ad19..eecc7a4ba32698eca514a4eccd0d28f07d709942 100644 (file)
@@ -52,6 +52,8 @@ python_compile_all() {
 
 python_test() {
        tc-export CC
+       # https://github.com/cython/cython/issues/1911
+       local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
        "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
                || die "Tests fail with ${EPYTHON}"
 }