Searched hist:"1 d984a67a95d88f3e708b077dab8adeb47c38c93" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | configure | 52510f8b2c0486e6c2743b1d069b3584ef4524da Thu Nov 14 12:07:03 CST 2013 Stefan Weil <sw@weilnetz.de> configure: Use -B switch only for Python versions which support it
Commit 1d984a67a95d88f3e708b077dab8adeb47c38c93 added the -B switch unconditionally. This breaks Python versions before 2.6 which don't support that switch.
Now configure adds -B only if it is accepted by the Python interpreter.
This modification introduces a small incompatibility because -B might now also be added when configure was called with --python=PYTHON_INTERPRETER.
Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> 1d984a67a95d88f3e708b077dab8adeb47c38c93 Tue Aug 27 08:12:41 CDT 2013 Stefan Weil <sw@weilnetz.de> configure: Don't write .pyc files by default (python -B)
When a Python script is run, Python normally writes bytecode into a .pyc file. QEMU's build process uses several Python scripts which are called from configure or make.
The generated .pyc files take disk space without being of much use, because those scripts are short, not time critical and only called a few times.
Python's option -B disables writing of .pyc files. QEMU now uses "python -B" as default, but it is still possible to choose a different call by passing --python=PYTHON to configure.
Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|