mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Fixed msys2 builds
This commit is contained in:
parent
3327e7f54a
commit
cfc3ba4b51
2 changed files with 21 additions and 1 deletions
8
.github/workflows/c-cpp.yml
vendored
8
.github/workflows/c-cpp.yml
vendored
|
@ -343,7 +343,13 @@ jobs:
|
||||||
uses: eine/setup-msys2@v2
|
uses: eine/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
update: true
|
update: true
|
||||||
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-lld mingw-w64-x86_64-cmake make
|
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-lld mingw-w64-x86_64-cmake make git
|
||||||
|
|
||||||
|
- name: Apply patch
|
||||||
|
if: matrix.config.c == 'clang'
|
||||||
|
run: |
|
||||||
|
cd /
|
||||||
|
git apply --verbose --ignore-whitespace --directory=mingw64/include/c++/`ls mingw64/include/c++`/ /d/a/p2pool/p2pool/patches/msys2/typeinfo.patch
|
||||||
|
|
||||||
- name: Build libcurl
|
- name: Build libcurl
|
||||||
run: |
|
run: |
|
||||||
|
|
14
patches/msys2/typeinfo.patch
Normal file
14
patches/msys2/typeinfo.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
diff --git a/typeinfo b/typeinfo
|
||||||
|
index 4cce6cb..323fbc1 100644
|
||||||
|
--- a/typeinfo
|
||||||
|
+++ b/typeinfo
|
||||||
|
@@ -189,6 +189,9 @@ namespace std
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if __GXX_TYPEINFO_EQUALITY_INLINE || __cplusplus > 202002L
|
||||||
|
+#ifdef __clang__
|
||||||
|
+ __attribute__((always_inline))
|
||||||
|
+#endif
|
||||||
|
_GLIBCXX23_CONSTEXPR inline bool
|
||||||
|
type_info::operator==(const type_info& __arg) const _GLIBCXX_NOEXCEPT
|
||||||
|
{
|
Loading…
Reference in a new issue