dev-python/pyblake2: drop fugly hack, no longer necessary after cpu features fix
authorFabian Groffen <grobian@gentoo.org>
Wed, 25 Oct 2017 17:54:00 +0000 (19:54 +0200)
committerFabian Groffen <grobian@gentoo.org>
Wed, 25 Oct 2017 17:54:42 +0000 (19:54 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-python/pyblake2/pyblake2-0.9.3.ebuild

index b0c84ac4968e2b8ffcb18301d01016f75c5b3e59..619cb27c3cf605013542d8fcc6f2f695cedaf360 100644 (file)
@@ -43,27 +43,6 @@ python_prepare_all() {
        # uncomment the implementation of choice
        sed -i -e "/BLAKE2_COMPRESS_$(blake2_impl)/s:^#::" setup.py || die
 
-       # avoid segfault due to over(?) optimisation
-       if [[ ${CHOST} == *86*-darwin* ]] ; then
-               local march=$(get-flag march)
-               # expand "native" into the used cpu optmisation
-               if [[ ${march} == native ]] ; then
-                       # we're always on Clang here    
-                       march=$(llc --version | grep "Host CPU:")
-                       march=${march##*: }
-               fi
-               # compiling for haswell cpu results in a segfault when used
-               # with optimisation >O1, since optimisation here benefits more
-               # than cpu specific instructions, reduce to ivybridge level
-               case ${march} in
-                       haswell|broadwell|skylake*)
-                               local opt=$(get-flag -O)
-                               [[ ${opt#-O} -gt 1 ]] && \
-                                       replace-flags -march=* -march=ivybridge
-                               ;;
-               esac
-       fi
-
        distutils-r1_python_prepare_all
 }