Fix Windows OS build with CoreCLR 6.0 sources.
authorMikhail Kurinnoi <m.kurinnoi@samsung.com>
Wed, 8 Dec 2021 10:43:49 +0000 (02:43 -0800)
committerAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>
Thu, 9 Dec 2021 13:59:46 +0000 (16:59 +0300)
Related to https://github.com/dotnet/runtime/commit/fcd862e06413a000f9cafa9d2f359226c60b9b42
Note, in case warning level 4, you also could need https://github.com/dotnet/runtime/pull/60967 changes.

clrdefinitions.cmake

index c50cf638389a549b10ea305453ddb62b4bc7c794..38272a9a849ef708da820a2668ab5aff8f615b83 100644 (file)
@@ -82,6 +82,7 @@ if(WIN32)
   add_definitions(-D_WIN32_WINNT=0x0602)
   add_definitions(-DWIN32_LEAN_AND_MEAN=1)
   add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+  add_definitions(-DHOST_WINDOWS)
   if(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_I386)
     # Only enable edit and continue on windows x86 and x64
     # exclude Linux, arm & arm64