Skip to content

Commit

Permalink
Merge pull request #476 from tailsu/sd/clang-cl-arm64-fix
Browse files Browse the repository at this point in the history
explicitly check for ARM/ARM64 on Windows
  • Loading branch information
jzmaddock authored Jul 3, 2022
2 parents 3193efe + 0f3137c commit 17137b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/boost/multiprecision/cpp_int/intel_intrinsics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
#undef BOOST_MP_HAS_IMMINTRIN_H
#endif

#if defined(BOOST_MSVC) && !defined(_M_IX86) && !defined(_M_X64) && !defined(_M_AMD64)
#if defined(_WIN32) && (defined(_M_ARM64) || defined(_M_ARM))
//
// When targeting platforms such as ARM, msvc still has the Intel headers in it's include path
// even though they're not usable. See https://github.com/boostorg/multiprecision/issues/321
// When targeting platforms such as ARM, msvc (and also clang when emulating msvc) still has the
// Intel headers in its include path even though they're not usable.
// See https://github.com/boostorg/multiprecision/issues/321
// Also https://github.com/boostorg/multiprecision/issues/475
//
#undef BOOST_MP_HAS_IMMINTRIN_H
#endif
Expand Down

0 comments on commit 17137b8

Please sign in to comment.