Update to latest Arbutils
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
56b92a22a6
commit
a828e2d09c
|
@ -1,7 +1,7 @@
|
||||||
#include "Core.hpp"
|
#include "Core.hpp"
|
||||||
|
|
||||||
std::string ExceptionHandler::_creatureLibLastException = "";
|
std::string ExceptionHandler::_creatureLibLastException = "";
|
||||||
std::string ExceptionHandler::_creatureLibLastExceptionStacktrace = "";
|
std::string ExceptionHandler::_creatureLibLastExceptionStacktrace = "Unset";
|
||||||
|
|
||||||
export const char* CreatureLib_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
export const char* CreatureLib_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
||||||
export const char* CreatureLib_C_GetLastExceptionStacktrace() { return ExceptionHandler::GetLastExceptionStacktrace(); }
|
export const char* CreatureLib_C_GetLastExceptionStacktrace() { return ExceptionHandler::GetLastExceptionStacktrace(); }
|
||||||
|
|
|
@ -21,11 +21,14 @@ public:
|
||||||
ss << "[" << function << "] " << e.what();
|
ss << "[" << function << "] " << e.what();
|
||||||
_creatureLibLastException = ss.str();
|
_creatureLibLastException = ss.str();
|
||||||
_creatureLibLastExceptionStacktrace = e.GetStacktrace(depth, true);
|
_creatureLibLastExceptionStacktrace = e.GetStacktrace(depth, true);
|
||||||
|
if (_creatureLibLastExceptionStacktrace.empty())
|
||||||
|
_creatureLibLastExceptionStacktrace = "err";
|
||||||
}
|
}
|
||||||
static void SetLastException(const std::string& function, const std::exception& e) {
|
static void SetLastException(const std::string& function, const std::exception& e) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "[" << function << "] " << e.what();
|
ss << "[" << function << "] " << e.what();
|
||||||
_creatureLibLastException = ss.str();
|
_creatureLibLastException = ss.str();
|
||||||
|
_creatureLibLastExceptionStacktrace = "Exception did not have a stacktrace.";
|
||||||
}
|
}
|
||||||
static const char* GetLastException() { return _creatureLibLastException.c_str(); }
|
static const char* GetLastException() { return _creatureLibLastException.c_str(); }
|
||||||
static const char* GetLastExceptionStacktrace() { return _creatureLibLastExceptionStacktrace.c_str(); }
|
static const char* GetLastExceptionStacktrace() { return _creatureLibLastExceptionStacktrace.c_str(); }
|
||||||
|
|
|
@ -15,6 +15,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
add_compile_options(-fconcepts)
|
add_compile_options(-fconcepts)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (NOT WINDOWS)
|
||||||
|
# Include debug symbols in all linux builds
|
||||||
|
add_compile_options(-g -gfull -g3)
|
||||||
|
endif ()
|
||||||
|
|
||||||
include(CmakeConanSetup.cmake)
|
include(CmakeConanSetup.cmake)
|
||||||
SetupConan()
|
SetupConan()
|
||||||
|
|
||||||
|
@ -44,7 +49,7 @@ endif (WINDOWS)
|
||||||
# Set up links to all relevant libraries.
|
# Set up links to all relevant libraries.
|
||||||
SET(_LIBRARYLINKS Arbutils)
|
SET(_LIBRARYLINKS Arbutils)
|
||||||
if (NOT WINDOWS)
|
if (NOT WINDOWS)
|
||||||
set(_LIBRARYLINKS ${_LIBRARYLINKS} -lbfd -ldl)
|
set(_LIBRARYLINKS ${_LIBRARYLINKS} -ldw)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# If we need to link the C libraries statically, do so.
|
# If we need to link the C libraries statically, do so.
|
||||||
|
|
Loading…
Reference in New Issue