Skip to content

Commit adbf98f

Browse files
committed
Opt out browser from zlib-ng
1 parent 16540c4 commit adbf98f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eng/native/configureplatform.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,10 @@ if(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL debug)
508508
string(REPLACE "-D_FORTIFY_SOURCE=2 " "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
509509
endif()
510510

511-
if (CLR_CMAKE_TARGET_ANDROID OR CLR_CMAKE_TARGET_MACCATALYST OR CLR_CMAKE_TARGET_IOS OR CLR_CMAKE_TARGET_TVOS OR CLR_CMAKE_HOST_ARCH_ARMV6)
511+
if (CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_ANDROID OR CLR_CMAKE_TARGET_MACCATALYST OR CLR_CMAKE_TARGET_IOS OR CLR_CMAKE_TARGET_TVOS OR CLR_CMAKE_HOST_ARCH_ARMV6)
512512
# Some platforms are opted-out from using the in-tree zlib-ng by default:
513513
# - Android and iOS-like platforms: concerns about extra binary size
514514
# - Armv6: zlib-ng has build breaks
515+
# - Browser: linking errors with zlib-ng
515516
set(CLR_CMAKE_USE_SYSTEM_ZLIB 1)
516517
endif()

0 commit comments

Comments
 (0)