summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-10 11:56:56 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-10 11:56:56 -0500
commitb354eee1ed8ff8ea210741d51edbd1f3b4f05525 (patch)
treee9197d10031694b078f9780657e41ff979348db2
parent0ee1cb2ae9d17341bec1f271db439546b703ba7d (diff)
downloadcryptopp-git-b354eee1ed8ff8ea210741d51edbd1f3b4f05525.tar.gz
Add /arch:AVX for chacha_avx.cpp to Nmake recipe
-rw-r--r--cryptest.nmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cryptest.nmake b/cryptest.nmake
index b2914b5d..78817af0 100644
--- a/cryptest.nmake
+++ b/cryptest.nmake
@@ -233,6 +233,13 @@ x64masm.obj:
x64dll.obj:
$(AS) $(ASFLAGS) /Fo x64dll.obj /c x64dll.asm
+# You may need to delete this on early versions of Visual Studio.
+# Down-level compilers will simply see chacha_avx.cpp as an empty file.
+!IF "$(PLATFORM)" == "x64" || "$(PLATFORM)" == "X64" || "$(PLATFORM)" == "amd64" || "$(PLATFORM)" == "x86" || "$(PLATFORM)" == "X86"
+chacha_avx.obj:
+ $(CXX) $(CXXFLAGS) /arch:AVX /c chacha_avx.cpp
+!endif
+
.cpp.obj:
$(CXX) $(CXXFLAGS) /c $<