Skip to content

Commit

Permalink
bpo-43166: Disable ceval.c optimisations for Windows debug builds (py…
Browse files Browse the repository at this point in the history
…thonGH-24485)

This ensures that ceval.c can be debugged.
Also remove some irrelevant options from the pragma.
  • Loading branch information
zooba authored and adorilson committed Mar 11, 2021
1 parent 6f8e162 commit 08ed5f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Include/pyport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08ed5f5

Please sign in to comment.