Skip to content

Commit b95ae9a

Browse files
committed
Disable HybridCRT for UWP
1 parent dd09721 commit b95ae9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/modules/HermesWindows.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ endif()
5252
# Configure Hybrid CRT for Windows builds (must be before any targets)
5353
# Uses static C++ runtime with dynamic Universal CRT to avoid MSVCP140.dll dependency
5454
# See for details: https://github.com/microsoft/WindowsAppSDK/blob/main/docs/Coding-Guidelines/HybridCRT.md
55-
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
55+
# UWP (WindowsStore) targets do not support the hybrid runtime configuration, so let
56+
# them fall back to the toolchain default (dynamic CRT) to keep the ABI contract.
57+
if(NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
58+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
59+
endif()
5660

5761
# Enable source linking
5862
if ("${CMAKE_C_COMPILER_ID}" MATCHES "MSVC")

0 commit comments

Comments
 (0)