mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
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:
parent
d31c063fb9
commit
f9122d3aa2
@ -1,3 +1,3 @@
|
||||
Source: chakracore
|
||||
Version: 1.11.1
|
||||
Version: 1.11.1-1
|
||||
Description: Core part of the Chakra Javascript engine
|
||||
|
@ -24,10 +24,7 @@ set(BUILDTREE_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET})
|
||||
file(REMOVE_RECURSE ${BUILDTREE_PATH})
|
||||
file(COPY ${SOURCE_PATH}/ DESTINATION ${BUILDTREE_PATH})
|
||||
|
||||
set(CHAKRA_RUNTIME_LIB "static_library") # ChakraCore default is static CRT linkage
|
||||
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
||||
set(CHAKRA_RUNTIME_LIB "dynamic_library")
|
||||
endif()
|
||||
set(CHAKRA_RUNTIME_LIB "static_library") # ChakraCore only supports static CRT linkage
|
||||
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${BUILDTREE_PATH}/Build/Chakra.Core.sln
|
||||
|
Loading…
x
Reference in New Issue
Block a user