1 |
commit: 21aeb29ab2c7b8162467b4b679e1e946a0f1754a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 15 08:10:13 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 15 08:10:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/dev/mgorny.git/commit/?id=21aeb29a |
7 |
|
8 |
dev-binpkg/pypy3: Restore non-SSE2 x86 backend |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-binpkg/pypy3/pypy3-7.1.1.ebuild | 22 +++++++++++++++++++++- |
13 |
1 file changed, 21 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-binpkg/pypy3/pypy3-7.1.1.ebuild b/dev-binpkg/pypy3/pypy3-7.1.1.ebuild |
16 |
index f1e198c..c104421 100644 |
17 |
--- a/dev-binpkg/pypy3/pypy3-7.1.1.ebuild |
18 |
+++ b/dev-binpkg/pypy3/pypy3-7.1.1.ebuild |
19 |
@@ -98,12 +98,32 @@ src_prepare() { |
20 |
src_configure() { |
21 |
tc-export CC |
22 |
|
23 |
+ local jit_backend |
24 |
+ if use jit; then |
25 |
+ jit_backend='--jit-backend=' |
26 |
+ |
27 |
+ # We only need the explicit sse2 switch for x86. |
28 |
+ # On other arches we can rely on autodetection which uses |
29 |
+ # compiler macros. Plus, --jit-backend= doesn't accept all |
30 |
+ # the modern values... |
31 |
+ |
32 |
+ if use x86; then |
33 |
+ if use cpu_flags_x86_sse2; then |
34 |
+ jit_backend+=x86 |
35 |
+ else |
36 |
+ jit_backend+=x86-without-sse2 |
37 |
+ fi |
38 |
+ else |
39 |
+ jit_backend+=auto |
40 |
+ fi |
41 |
+ fi |
42 |
+ |
43 |
local args=( |
44 |
--shared |
45 |
$(usex jit -Ojit -O2) |
46 |
$(usex sandbox --sandbox '') |
47 |
|
48 |
- --jit-backend=auto |
49 |
+ ${jit_backend} |
50 |
|
51 |
pypy/goal/targetpypystandalone |
52 |
) |