summaryrefslogtreecommitdiff
path: root/compileoptions.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'compileoptions.cmake')
-rw-r--r--compileoptions.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/compileoptions.cmake b/compileoptions.cmake
index 9fcbb741d0..d058b66e62 100644
--- a/compileoptions.cmake
+++ b/compileoptions.cmake
@@ -91,6 +91,7 @@ if (WIN32)
add_compile_options(/Zm200) # Specify Precompiled Header Memory Allocation Limit of 150MB
add_compile_options(/wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640)
add_compile_options(/Zi) # enable debugging information
+ add_compile_options(/ZH:SHA_256) # use SHA256 for generating hashes of compiler processed source files.
if (CLR_CMAKE_PLATFORM_ARCH_I386)
add_compile_options(/Gz)
@@ -116,6 +117,8 @@ if (WIN32)
add_compile_options($<$<OR:$<CONFIG:Release>,$<CONFIG:Relwithdebinfo>>:/MT>)
add_compile_options($<$<OR:$<CONFIG:Debug>,$<CONFIG:Checked>>:/MTd>)
+ set(CMAKE_ASM_MASM_FLAGS "${CMAKE_ASM_MASM_FLAGS} /ZH:SHA_256")
+
endif (WIN32)
if(CMAKE_ENABLE_CODE_COVERAGE)