summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
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 6687849..46bbef2 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)