Add /arch:AVX for chacha_avx.cpp to Nmake recipe

pull/737/head
Jeffrey Walton 2018-11-10 11:56:56 -05:00
parent 0ee1cb2ae9
commit b354eee1ed
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 7 additions and 0 deletions

View File

@ -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 $<