commit: 21aeb29ab2c7b8162467b4b679e1e946a0f1754a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Aug 15 08:10:13 2019 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Aug 15 08:10:13 2019 +0000 URL: https://gitweb.gentoo.org/repo/dev/mgorny.git/commit/?id=21aeb29a
dev-binpkg/pypy3: Restore non-SSE2 x86 backend Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-binpkg/pypy3/pypy3-7.1.1.ebuild | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/dev-binpkg/pypy3/pypy3-7.1.1.ebuild b/dev-binpkg/pypy3/pypy3-7.1.1.ebuild index f1e198c..c104421 100644 --- a/dev-binpkg/pypy3/pypy3-7.1.1.ebuild +++ b/dev-binpkg/pypy3/pypy3-7.1.1.ebuild @@ -98,12 +98,32 @@ src_prepare() { src_configure() { tc-export CC + local jit_backend + if use jit; then + jit_backend='--jit-backend=' + + # We only need the explicit sse2 switch for x86. + # On other arches we can rely on autodetection which uses + # compiler macros. Plus, --jit-backend= doesn't accept all + # the modern values... + + if use x86; then + if use cpu_flags_x86_sse2; then + jit_backend+=x86 + else + jit_backend+=x86-without-sse2 + fi + else + jit_backend+=auto + fi + fi + local args=( --shared $(usex jit -Ojit -O2) $(usex sandbox --sandbox '') - --jit-backend=auto + ${jit_backend} pypy/goal/targetpypystandalone )