diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2016-05-12 16:08:10 -0700 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2016-05-12 16:08:10 -0700 |
commit | 93e43261663df5cbe5875e88389d74ae727f2337 (patch) | |
tree | c1cc7a385ed8ed6fa78fc7dc937a9ab82a805fe1 | |
parent | 1d2b39484385a6dd8b22eb45329f8dfd3389a180 (diff) | |
download | coreclr-93e43261663df5cbe5875e88389d74ae727f2337.tar.gz coreclr-93e43261663df5cbe5875e88389d74ae727f2337.tar.bz2 coreclr-93e43261663df5cbe5875e88389d74ae727f2337.zip |
Enable SHA256 to be used as hashing algorithm for compiler/assembler
-rw-r--r-- | compileoptions.cmake | 3 |
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) |