summaryrefslogtreecommitdiff
path: root/config_asm.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-17 08:46:27 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-17 08:46:27 -0400
commitb64a920bc9f5153463cff3607ac5e7b9f939b46d (patch)
tree036637cc00ded8280705ad9e0f9ed7ba4f82679f /config_asm.h
parent85f16efc328a82e437224996995f863de34b31f3 (diff)
downloadcryptopp-git-b64a920bc9f5153463cff3607ac5e7b9f939b46d.tar.gz
Enable CRYPTOPP_DISABLE_MIXED_ASM in config_asm.h
Diffstat (limited to 'config_asm.h')
-rw-r--r--config_asm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config_asm.h b/config_asm.h
index 2cc8011c..fd3cbfdc 100644
--- a/config_asm.h
+++ b/config_asm.h
@@ -38,6 +38,12 @@
// Also see https://bugs.llvm.org/show_bug.cgi?id=39895 .
// #define CRYPTOPP_DISABLE_MIXED_ASM 1
+#ifndef CRYPTOPP_DISABLE_MIXED_ASM
+# if defined(__clang__)
+# define CRYPTOPP_DISABLE_MIXED_ASM 1
+# endif
+#endif
+
// CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS is no longer honored. It
// was removed at https://github.com/weidai11/cryptopp/issues/682
// #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS 1