forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Crashpad] Update to latest version 2024-05-10
* [crashpad]: update to latest version * [crashpad]: fix atomic_thread_fence * [crashpad]: update version db * [crashpad]: add workflow
- Loading branch information
Showing
6 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: crashpad | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/crashpad.yml' | ||
- 'ports/crashpad/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/crashpad.yml' | ||
- 'ports/crashpad/**' | ||
|
||
jobs: | ||
build-ubuntu: | ||
name: Build on ubuntu | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-24.04, ubuntu-22.04] | ||
triplet: [x64-linux] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install vcpkg-tool | ||
shell: bash | ||
run: ./bootstrap-vcpkg.sh | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
./vcpkg install crashpad --triplet ${{ matrix.triplet }} \ | ||
|| (cat ./installed/vcpkg/issue_body.md && exit 1) | ||
build-macos: | ||
name: Build on macos | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-14, macos-13] | ||
triplet: [x64-osx, arm64-osx] | ||
|
||
steps: | ||
- name: Install deps | ||
shell: bash | ||
run: | | ||
if [ "${{ matrix.os }}" = "macos-14" ]; then | ||
brew install python-setuptools | ||
else | ||
pip3 install setuptools | ||
fi | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install vcpkg-tool | ||
shell: bash | ||
run: ./bootstrap-vcpkg.sh | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
./vcpkg install crashpad --triplet ${{ matrix.triplet }} \ | ||
|| (cat ./installed/vcpkg/issue_body.md && exit 1) | ||
build-windows: | ||
name: Build on windows | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-2022, windows-2019] | ||
triplet: | ||
- x64-windows | ||
- x64-windows-static-md | ||
- x86-windows | ||
- x86-windows-static-md | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install vcpkg-tool | ||
shell: pwsh | ||
run: .\bootstrap-vcpkg.bat | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
./vcpkg.exe install crashpad --triplet ${{ matrix.triplet }} \ | ||
|| (cat ./installed/vcpkg/issue_body.md && exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/base/atomicops_internals_portable.h b/base/atomicops_internals_portable.h | ||
index 2486fb7..ffbab08 100644 | ||
--- a/base/atomicops_internals_portable.h | ||
+++ b/base/atomicops_internals_portable.h | ||
@@ -54,7 +54,7 @@ inline void MemoryBarrier() { | ||
#if defined(__GLIBCXX__) | ||
// Work around libstdc++ bug 51038 where atomic_thread_fence was declared but | ||
// not defined, leading to the linker complaining about undefined references. | ||
- __atomic_thread_fence(std::memory_order_seq_cst); | ||
+ __atomic_thread_fence(static_cast<int>(std::memory_order_seq_cst)); | ||
#else | ||
std::atomic_thread_fence(std::memory_order_seq_cst); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters