pcsx2: fix build on i686-musl

This commit is contained in:
John 2020-07-02 13:11:48 +02:00
parent 5bdf2136ef
commit 13f8cd1713
No known key found for this signature in database
GPG key ID: 5FDE97AF468A09B7
2 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,42 @@
From 6b7f20a9e048e4bd9d7760cb72e6335aee8155d4 Mon Sep 17 00:00:00 2001
From: John Zimmermann <me@johnnynator.dev>
Date: Thu, 2 Jul 2020 12:24:45 +0200
Subject: [PATCH] Allow running on systems without wx stackwalkler
closes #2796
---
pcsx2/gui/AppAssert.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git pcsx2/gui/AppAssert.cpp pcsx2/gui/AppAssert.cpp
index a282715c4e..4ce151f86f 100644
--- pcsx2/gui/AppAssert.cpp
+++ pcsx2/gui/AppAssert.cpp
@@ -19,6 +19,7 @@
#include <wx/stackwalk.h>
+#if wxUSE_STACKWALKER
class StackDump : public wxStackWalker
{
protected:
@@ -94,6 +95,7 @@ static wxString pxGetStackTrace( const FnChar_t* calledFrom )
dump.Walk( 3 );
return dump.GetStackTrace();
}
+#endif
#ifdef __WXDEBUG__
@@ -122,7 +124,11 @@ bool AppDoAssert( const DiagnosticOrigin& origin, const wxChar *msg )
static bool disableAsserts = false;
if( disableAsserts ) return false;
+#if wxUSE_STACKWALKER
wxString trace( pxGetStackTrace(origin.function) );
+#else
+ wxString trace( "Warning: Platform doesn't support wx stackwalker" );
+#endif
wxString dbgmsg( origin.ToString( msg ) );
wxMessageOutputDebug().Printf( L"%s", WX_STR(dbgmsg) );

View file

@ -1,5 +1,5 @@
# Template file for 'pcsx2'
archs="i686"
archs="i686*"
lib32mode="full"
nopie=yes