-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81405 from akien-mga/mbedtls-fix-msvc-arm
mbedtls: Fix MSVC ARM build after 2.28.3 enabled AES-NI intrinsics
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/thirdparty/mbedtls/include/mbedtls/aesni.h b/thirdparty/mbedtls/include/mbedtls/aesni.h | ||
index 6741dead05..6c545bd4a3 100644 | ||
--- a/thirdparty/mbedtls/include/mbedtls/aesni.h | ||
+++ b/thirdparty/mbedtls/include/mbedtls/aesni.h | ||
@@ -54,9 +54,10 @@ | ||
* macros that may change in future releases. | ||
*/ | ||
#undef MBEDTLS_AESNI_HAVE_INTRINSICS | ||
-#if defined(_MSC_VER) | ||
+#if defined(_MSC_VER) && (defined(_M_AMD64) || defined(_M_IX86)) | ||
/* Visual Studio supports AESNI intrinsics since VS 2008 SP1. We only support | ||
- * VS 2013 and up for other reasons anyway, so no need to check the version. */ | ||
+ * VS 2013 and up for other reasons anyway, so no need to check the version. | ||
+ * Only supported on x64 and x86. */ | ||
#define MBEDTLS_AESNI_HAVE_INTRINSICS | ||
#endif | ||
/* GCC-like compilers: currently, we only support intrinsics if the requisite |