mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-35758: Fix building on ARM + MSVC (gh-11531)
* Disable x87 control word for non-x86 targets On msvc, x87 control word is only available on x86 target. Need to disable it for other targets to prevent compiling problems. * Include immintrin.h on x86 and x64 only Immintrin.h is only available on x86 and x64. Need to disable it for other targets to prevent compiling problems.
This commit is contained in:
parent
2433a2ab70
commit
7a2368063f
3 changed files with 5 additions and 2 deletions
|
|
@ -19,7 +19,9 @@ extern "C" {
|
|||
|
||||
#if defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
#include <immintrin.h>
|
||||
#if defined(_M_IX86) || defined(_M_X64)
|
||||
# include <immintrin.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This is modeled after the atomics interface from C1x, according to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue