From 21aeb29ab2c7b8162467b4b679e1e946a0f1754a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 15 Aug 2019 10:10:13 +0200 Subject: dev-binpkg/pypy3: Restore non-SSE2 x86 backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- 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 ) -- cgit v1.2.3-18-g5258