mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-120326: Include <intrin.h> on Windows with Free Threading (#120329)
This commit is contained in:
parent
86a8a1c57a
commit
939c201e00
2 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,10 @@
|
||||||
# error "The limited API is not currently supported in the free-threaded build"
|
# error "The limited API is not currently supported in the free-threaded build"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(Py_GIL_DISABLED) && defined(_MSC_VER)
|
||||||
|
# include <intrin.h> // __readgsqword()
|
||||||
|
#endif
|
||||||
|
|
||||||
// Include Python header files
|
// Include Python header files
|
||||||
#include "pyport.h"
|
#include "pyport.h"
|
||||||
#include "pymacro.h"
|
#include "pymacro.h"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
On Windows, fix build error when ``--disable-gil`` and ``--experimental-jit``
|
||||||
|
options are combined.
|
Loading…
Add table
Add a link
Reference in a new issue