aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-02-09 18:13:36 +0000
committerGitHub <noreply@github.com>2021-02-09 18:13:36 +0000
commitb74396c3167cc780f01309148db02709bc37b432 (patch)
tree538d3bce422aa580277c4568bfa6b887dcefe850 /Include
parentbpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (diff)
downloadcpython-b74396c3167cc780f01309148db02709bc37b432.tar.gz
cpython-b74396c3167cc780f01309148db02709bc37b432.tar.bz2
cpython-b74396c3167cc780f01309148db02709bc37b432.zip
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.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 6687849d844..46bbef22d73 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)