[easyhook] Use /Z7 rather than /Zi to avoid mspdbsrv crashes. (#20757)

This commit is contained in:
Billy O'Neal 2021-10-15 19:23:14 -07:00 committed by GitHub
parent 33ced4f1c3
commit 911481736d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 2 deletions

View File

@ -19,10 +19,21 @@ else()
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
endif()
# Use /Z7 rather than /Zi to avoid "fatal error C1090: PDB API call failed, error code '23': (0x00000006)"
foreach(VCXPROJ IN ITEMS
"${SOURCE_PATH}/EasyHookDll/EasyHookDll.vcxproj"
"${SOURCE_PATH}/Examples/UnmanagedHook/UnmanagedHook.vcxproj")
vcpkg_replace_string(
"${VCXPROJ}"
"<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>"
"<DebugInformationFormat>OldStyle</DebugInformationFormat>"
)
endforeach()
vcpkg_install_msbuild(
SOURCE_PATH ${SOURCE_PATH}
PROJECT_SUBPATH EasyHook.sln
TARGET EasyHookDll
TARGET EasyHookDll
RELEASE_CONFIGURATION "netfx4-Release"
DEBUG_CONFIGURATION "netfx4-Debug"
PLATFORM ${BUILD_ARCH}

View File

@ -1,6 +1,7 @@
{
"name": "easyhook",
"version": "2.7.7097.0",
"port-version": 1,
"description": "This project supports extending (hooking) unmanaged code (APIs) with pure managed ones, from within a fully managed environment on 32- or 64-bit Windows Vista x64, Windows Server 2008 x64, Windows 7, Windows 8.1, and Windows 10.",
"homepage": "https://github.com/EasyHook/EasyHook",
"supports": "windows & !(static | arm | uwp)"

View File

@ -1922,7 +1922,7 @@
},
"easyhook": {
"baseline": "2.7.7097.0",
"port-version": 0
"port-version": 1
},
"easyloggingpp": {
"baseline": "9.97.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5dc14a4f006221297cad1ea84143aeae33f30284",
"version": "2.7.7097.0",
"port-version": 1
},
{
"git-tree": "efa456841ef4446343c908f3ed36217b7a1d75a3",
"version": "2.7.7097.0",