Skip to content

Commit 21113a1

Browse files
Fix mono compilation
- Mono defines HOST_WIN32, not CLR_CMAKE_HOST_WIN32 - Follow same pattern from src\native\eventpipe\CMakeLists.txt
1 parent e6c9b97 commit 21113a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/external/zlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set(ZLIB_SOURCES_BASE
3131

3232
# enable custom zlib allocator
3333
add_definitions(-DMY_ZCALLOC)
34-
if(CLR_CMAKE_HOST_WIN32)
34+
if(HOST_WIN32 OR CLR_CMAKE_TARGET_WIN32)
3535
set(ZLIB_SOURCES_BASE ${ZLIB_SOURCES_BASE} ../../libs/System.IO.Compression.Native/zlib_allocator_win.c)
3636
else()
3737
set(ZLIB_SOURCES_BASE ${ZLIB_SOURCES_BASE} ../../libs/System.IO.Compression.Native/zlib_allocator_unix.c)

0 commit comments

Comments
 (0)