summaryrefslogtreecommitdiff
path: root/compileoptions.cmake
diff options
context:
space:
mode:
authorGaurav Khanna <gkhanna@microsoft.com>2016-05-12 23:08:10 (GMT)
committerGaurav Khanna <gkhanna@microsoft.com>2016-05-12 23:08:10 (GMT)
commit93e43261663df5cbe5875e88389d74ae727f2337 (patch)
treec1cc7a385ed8ed6fa78fc7dc937a9ab82a805fe1 /compileoptions.cmake
parent1d2b39484385a6dd8b22eb45329f8dfd3389a180 (diff)
downloadcoreclr-93e43261663df5cbe5875e88389d74ae727f2337.zip
coreclr-93e43261663df5cbe5875e88389d74ae727f2337.tar.gz
coreclr-93e43261663df5cbe5875e88389d74ae727f2337.tar.bz2
Enable SHA256 to be used as hashing algorithm for compiler/assembler
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 9fcbb74..d058b66 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)