churchyard pushed to pypy3 (f21). "fix build on non-jit arches (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun May 10 19:33:56 UTC 2015


From 3d2cef177d26ff303a5be984f912e2b8d4266b0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan at danny.cz>
Date: Wed, 11 May 2011 10:15:52 +0200
Subject: fix build on non-jit arches

Build on non-jit arch like s390 fails with

[translation:info] Translating target as defined by targetpypystandalone
[platform:msg] Setting platform to 'host' cc=None
Traceback (most recent call last):
  File "translate.py", line 322, in <module>
    main()
  File "translate.py", line 208, in main
    targetspec_dic, translateconfig, config, args = parse_options_and_load_target()
  File "translate.py", line 176, in parse_options_and_load_target
    targetspec_dic['handle_config'](config, translateconfig)
  File "targetpypystandalone.py", line 109, in handle_config
    raise Exception("You have to specify the --opt level.\n"
Exception: You have to specify the --opt level.
Try --opt=2 or --opt=jit, or equivalently -O2 or -Ojit .

diff --git a/pypy.spec b/pypy.spec
index 1a651e0..b4705c1 100644
--- a/pypy.spec
+++ b/pypy.spec
@@ -431,6 +431,8 @@ BuildPyPy \
   pypy \
 %if 0%{with_jit}
   "-Ojit" \
+%else
+  "-O2" \
 %endif
   %{nil}
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pypy3.git/commit/?h=f21&id=3d2cef177d26ff303a5be984f912e2b8d4266b0d


More information about the scm-commits mailing list