Re: [Python-Dev] [Python-checkins] cpython (3.3): Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't
christian.heimes <python-checkins@python.org> wrote:
+/* ASM isn't available in strict ansi C mode */ +#if defined(ASM) && defined(__STRICT_ANSI__) + #undef ASM + #define ANSI +#endif
I'm not too fond of this solution: the libmpdec build output should always be accurate. Now you have ... -ansi -DCONFIG_64=1 -DASM=1 ... but the build is silently non-asm. Like for pymath.c, __asm__ is tested for and selected in ./configure. So I'll replace asm with __asm__, same as in pymath.c and ceval.c. Stefan Krah
If anyone wants to force either an ANSI build or a specific libmpdec configuration, setup.py recognizes this environment variable (example): export PYTHON_DECIMAL_WITH_MACHINE=ansi64 The supported configurations listed here: http://hg.python.org/cpython/file/07d9d2901adb/Modules/_decimal/README.txt Stefan Krah
participants (1)
-
Stefan Krah