From 98878e5d120260215e726d2c18914a4ffe8fe30e Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 9 Aug 2017 07:52:24 +0000 Subject: [PATCH] Changed default PyPy build option; specify `--batch` to avoid launching interactive debugger --- plugins/python-build/bin/python-build | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 9465183c..e6e77f3d 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1007,9 +1007,15 @@ build_package_pypy() { build_package_pypy_builder() { if [ -f "rpython/bin/rpython" ]; then # pypy 2.x - python "rpython/bin/rpython" ${PYPY_OPTS:-"-Ojit"} "pypy/goal/targetpypystandalone.py" >&4 2>&1 + if [ -z "${PYPY_OPTS}" ]; then + local PYPY_OPTS="--opt=jit --batch --make-jobs=$(num_cpu_cores)" + fi + python "rpython/bin/rpython" ${PYPY_OPTS} "pypy/goal/targetpypystandalone.py" >&4 2>&1 elif [ -f "pypy/translator/goal/translate.py" ]; then # pypy 1.x - ( cd "pypy/translator/goal" && python "translate.py" ${PYPY_OPTS:-"--opt=jit"} "targetpypystandalone.py" ) 1>&4 2>&1 + if [ -z "${PYPY_OPTS}" ]; then + local PYPY_OPTS="--opt=jit" + fi + ( cd "pypy/translator/goal" && python "translate.py" ${PYPY_OPTS} "targetpypystandalone.py" ) 1>&4 2>&1 else echo "not a pypy source tree" 1>&3 return 1