Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit c531bbb

Browse files
author
Jarret Shook
authored
Fix build by applying patch from master (#28142)
1 parent 58f6883 commit c531bbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configurecompiler.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,9 @@ if (WIN32)
581581
add_compile_options(/ZH:SHA_256) # use SHA256 for generating hashes of compiler processed source files.
582582
add_compile_options(/source-charset:utf-8) # Force MSVC to compile source as UTF-8.
583583

584+
# 5105: Windows SDK headers use 'defined' operator in some macros
585+
add_compile_options(/wd4291 /wd5105)
586+
584587
if (CLR_CMAKE_PLATFORM_ARCH_I386)
585588
add_compile_options(/Gz)
586589
endif (CLR_CMAKE_PLATFORM_ARCH_I386)

0 commit comments

Comments
 (0)