Skip to content

Commit

Permalink
Don't use debug lib on Windows
Browse files Browse the repository at this point in the history
Summary: just like the 3.10 and 3.8 patches

Reviewed By: aleivag

Differential Revision: D55751654

fbshipit-source-id: 05854b5b3652c46ce5244500434e124777c18448
  • Loading branch information
itamaro authored and facebook-github-bot committed Apr 9, 2024
1 parent 1840b0c commit a0199fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PC/pyconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* So MSVC users need not specify the .lib
file in their Makefile (other compilers are
generally taken care of by distutils.) */
# if defined(_DEBUG)
# if defined(META_PLATFORMS_NOT_LIKELY_TO_BE_DEFINED_DEBUG)
# pragma comment(lib,"python312_d.lib")
# elif defined(Py_LIMITED_API)
# elif defined(META_PLATFORMS_NOT_LIKELY_TO_BE_DEFINED_Py_LIMITED_API)
# pragma comment(lib,"python3.lib")
# else
# pragma comment(lib,"python312.lib")
# endif /* _DEBUG */
# endif /* META_PLATFORMS_NOT_LIKELY_TO_BE_DEFINED_DEBUG */
# endif /* _MSC_VER */
# endif /* Py_BUILD_CORE */
#endif /* MS_COREDLL */
Expand Down Expand Up @@ -355,7 +355,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
# define ALIGNOF_MAX_ALIGN_T 8
#endif

#ifdef _DEBUG
#ifdef META_PLATFORMS_NOT_LIKELY_TO_BE_DEFINED_DEBUG
# define Py_DEBUG
#endif

Expand Down

0 comments on commit a0199fd

Please sign in to comment.