summaryrefslogtreecommitdiff
path: root/gcm.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-16 19:40:56 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-16 19:40:56 -0400
commite1433536bcc4ff65ed0a3ce568fad529d03a5d5b (patch)
tree9e4084f79f58d2070ded7e939622f50dda62ff2d /gcm.cpp
parent076d0cd60464547ce26ecbc23a2370d34919d91e (diff)
downloadcryptopp-git-e1433536bcc4ff65ed0a3ce568fad529d03a5d5b.tar.gz
Use CRYPTOPP_DISABLE_INTEL_ASM for Clang in GCM
Clang 6.0 is still broke. It cannot compile a simple "neg %rcx" using Intel syntax
Diffstat (limited to 'gcm.cpp')
-rw-r--r--gcm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcm.cpp b/gcm.cpp
index 3759a175..d1b57b5f 100644
--- a/gcm.cpp
+++ b/gcm.cpp
@@ -14,7 +14,7 @@
// Clang 3.3 integrated assembler crash on Linux. Other versions produce incorrect results.
// Clang has never handled Intel ASM very well. I wish LLVM would fix it.
-#if defined(__clang__)
+#if defined(CRYPTOPP_DISABLE_INTEL_ASM)
# undef CRYPTOPP_X86_ASM_AVAILABLE
# undef CRYPTOPP_X32_ASM_AVAILABLE
# undef CRYPTOPP_X64_ASM_AVAILABLE