Force ChakraCore to statically link the CRT (#4371)

ChakraCore can only dynamically link against MSVCRT currently. To work
around this it's best just to statically link the CRT like official
builds do.

Refs: https://github.com/Microsoft/ChakraCore/issues/5725
This commit is contained in:
Kyle Farnung 2018-10-01 09:57:56 -07:00 committed by Robert Schumacher
parent d31c063fb9
commit f9122d3aa2
2 changed files with 2 additions and 5 deletions

View File

@ -1,3 +1,3 @@
Source: chakracore Source: chakracore
Version: 1.11.1 Version: 1.11.1-1
Description: Core part of the Chakra Javascript engine Description: Core part of the Chakra Javascript engine

View File

@ -24,10 +24,7 @@ set(BUILDTREE_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET})
file(REMOVE_RECURSE ${BUILDTREE_PATH}) file(REMOVE_RECURSE ${BUILDTREE_PATH})
file(COPY ${SOURCE_PATH}/ DESTINATION ${BUILDTREE_PATH}) file(COPY ${SOURCE_PATH}/ DESTINATION ${BUILDTREE_PATH})
set(CHAKRA_RUNTIME_LIB "static_library") # ChakraCore default is static CRT linkage set(CHAKRA_RUNTIME_LIB "static_library") # ChakraCore only supports static CRT linkage
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
set(CHAKRA_RUNTIME_LIB "dynamic_library")
endif()
vcpkg_build_msbuild( vcpkg_build_msbuild(
PROJECT_PATH ${BUILDTREE_PATH}/Build/Chakra.Core.sln PROJECT_PATH ${BUILDTREE_PATH}/Build/Chakra.Core.sln