diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-08-12 14:20:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 14:20:44 (GMT) |
commit | 789a6af29f531f78abd2e2f6af80084ccabf80b1 (patch) | |
tree | 501998163e0a801e686fc6d7351b40cfe28fb93c /Include | |
parent | 8ac0886091c27bf4b6bb0a9b571e174b554d31a4 (diff) | |
download | cpython-789a6af29f531f78abd2e2f6af80084ccabf80b1.zip cpython-789a6af29f531f78abd2e2f6af80084ccabf80b1.tar.gz cpython-789a6af29f531f78abd2e2f6af80084ccabf80b1.tar.bz2 |
bpo-44890: Fix AMD build error (GH-27740)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_code.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 85f0954..282089c 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -305,8 +305,13 @@ int _Py_Specialize_BinarySubscr(PyObject *sub, PyObject *container, _Py_CODEUNIT #define PRINT_SPECIALIZATION_STATS_DETAILED 0 #define PRINT_SPECIALIZATION_STATS_TO_FILE 0 -#define COLLECT_SPECIALIZATION_STATS (Py_DEBUG || PRINT_SPECIALIZATION_STATS) -#define COLLECT_SPECIALIZATION_STATS_DETAILED (Py_DEBUG || PRINT_SPECIALIZATION_STATS_DETAILED) +#ifdef Py_DEBUG +#define COLLECT_SPECIALIZATION_STATS 1 +#define COLLECT_SPECIALIZATION_STATS_DETAILED 1 +#else +#define COLLECT_SPECIALIZATION_STATS PRINT_SPECIALIZATION_STATS +#define COLLECT_SPECIALIZATION_STATS_DETAILED PRINT_SPECIALIZATION_STATS_DETAILED +#endif #define SPECIALIZATION_FAILURE_KINDS 20 |