[libunwind] Fix build error on arm64-linux (#41245)

Co-authored-by: Jon <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993 2024-10-01 01:24:49 +08:00 committed by GitHub
parent f7f9065654
commit 88fbb11406
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 1 deletions

View File

@ -1,9 +1,21 @@
vcpkg_download_distfile(libunwind
URLS "https://github.com/dotnet/runtime/commit/d63c235756d4c46b061bd503a2c47207df6b3324.diff?full_index=1"
FILENAME "libunwind.diff"
SHA512 268af5d4aa3bec16e34c50024c0a3662e9a6fa7d273bb405c25f02066100e6bcbb9a68bd10556e3f420d983b586dac856fc45dbd182798889e5542217f953b27
)
file(READ "${libunwind}" contents)
string(REPLACE "/src/native/external/libunwind" "" contents "${contents}")
file(WRITE "${CURRENT_BUILDTREES_DIR}/src/libunwind.diff" "${contents}")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO "libunwind/libunwind"
REF "v${VERSION}"
HEAD_REF master
SHA512 dd8332b7a2cbabb4716c01feea422f83b4a7020c1bee20551de139c3285ea0e0ceadfa4171c6f5187448c8ddc53e0ec4728697d0a985ee0c3ff4835b94f6af6f
PATCHES
"${CURRENT_BUILDTREES_DIR}/src/libunwind.diff"
)
vcpkg_configure_make(

View File

@ -1,6 +1,7 @@
{
"name": "libunwind",
"version": "1.8.1",
"port-version": 1,
"description": "Unix libray for portable stack unwinding",
"homepage": "https://www.nongnu.org/libunwind",
"license": "MIT",

View File

@ -5230,7 +5230,7 @@
},
"libunwind": {
"baseline": "1.8.1",
"port-version": 0
"port-version": 1
},
"liburing": {
"baseline": "2.7",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e96e575a728361e6c29a57287a0050ad325e88fb",
"version": "1.8.1",
"port-version": 1
},
{
"git-tree": "5fa5d5fa4e60c42c059eb26e5b34650b8bdf6b0e",
"version": "1.8.1",