crypto/sha1: add real workaround for msvc/arm64 bad codegen

This commit is contained in:
Shawn Hoffman
2022-08-02 23:05:45 -07:00
parent 78142e30cc
commit bf5076eb01
3 changed files with 14 additions and 5 deletions

View File

@ -136,6 +136,14 @@ add_library(common
WorkQueueThread.h
)
if(MSVC AND _M_ARM_64)
# Workaround msvc arm64 optimizer bug
# TODO remove after updating to VS 17.4
set_source_files_properties(
Crypto/SHA1.cpp
PROPERTIES COMPILE_FLAGS "/d2ssa-peeps-post-color-")
endif()
if(NOT MSVC AND _M_ARM_64)
set_source_files_properties(
Crypto/AES.cpp