[Python-checkins] bpo-43166: Disable ceval.c optimisations for Windows debug builds (GH-24485)
zooba
webhook-mailer at python.org
Tue Feb 9 13:14:20 EST 2021
https://github.com/python/cpython/commit/b74396c3167cc780f01309148db02709bc37b432
commit: b74396c3167cc780f01309148db02709bc37b432
branch: master
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2021-02-09T18:13:36Z
summary:
bpo-43166: Disable ceval.c optimisations for Windows debug builds (GH-24485)
This ensures that ceval.c can be debugged.
Also remove some irrelevant options from the pragma.
files:
M Include/pyport.h
diff --git a/Include/pyport.h b/Include/pyport.h
index 6687849d84472..46bbef22d7396 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -180,9 +180,9 @@ typedef int Py_ssize_clean_t;
*/
#if defined(_MSC_VER)
-# if defined(PY_LOCAL_AGGRESSIVE)
- /* enable more aggressive optimization for visual studio */
-# pragma optimize("agtw", on)
+# if defined(PY_LOCAL_AGGRESSIVE) && !defined(Py_DEBUG)
+ /* enable more aggressive optimization for MSVC */
+# pragma optimize("gt", on)
#endif
/* ignore warnings if the compiler decides not to inline a function */
# pragma warning(disable: 4710)
More information about the Python-checkins
mailing list