Permalink
Please sign in to comment.
Browse files
Rewrite SIZEOF_* and HAVE_* feature detection.
pyconfig.h shouldn't hard-code values from a 64-bit machine! Include _build/detected-config.h instead. It now compiles on ubuntu32, but it crashes! There are a few more hard-coded sizeof() definitions.
- Loading branch information...
Showing
with
165 additions
and 50 deletions.
- +8 −47 Python-2.7.13/pyconfig.h
- +132 −3 configure
- +25 −0 scripts/ovm.sh
| @@ -0,0 +1,25 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Miscellaneous scripts for figuring out OVM. | ||
| # | ||
| # Usage: | ||
| # ./ovm.sh <function name> | ||
| set -o nounset | ||
| set -o pipefail | ||
| set -o errexit | ||
| source build/common.sh # $PY27 | ||
| grep-python() { | ||
| find $PY27 -type f | xargs grep "$@" | ||
| } | ||
| # https://stackoverflow.com/questions/2224334/gcc-dump-preprocessor-defines | ||
| # 493 variables. | ||
| pp-vars() { | ||
| gcc -E -dM - < $PY27/pyconfig.h | ||
| } | ||
| "$@" |
0 comments on commit
a3cd796