mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-14 08:37:00 +02:00
demangling disabled for windows since windows sucks
This commit is contained in:
parent
5e42f35138
commit
daa4e8d499
2 changed files with 3 additions and 3 deletions
|
|
@ -256,7 +256,7 @@ target_link_libraries(common PUBLIC fmt::fmt stb::headers Threads::Threads unord
|
||||||
target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd)
|
target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd)
|
||||||
|
|
||||||
# Please refer to src/common/demangle.cpp
|
# Please refer to src/common/demangle.cpp
|
||||||
if (MSVC)
|
if (WIN32)
|
||||||
target_link_libraries(common PRIVATE LLVM::Demangle)
|
target_link_libraries(common PRIVATE LLVM::Demangle)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#ifdef _MSC_VER
|
#ifdef _WIN32
|
||||||
#include <llvm/Demangle/Demangle.h>
|
#include <llvm/Demangle/Demangle.h>
|
||||||
#else
|
#else
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
|
|
@ -23,7 +23,7 @@ namespace Common {
|
||||||
std::string DemangleSymbol(const std::string& mangled) {
|
std::string DemangleSymbol(const std::string& mangled) {
|
||||||
if (mangled.size() > 0) {
|
if (mangled.size() > 0) {
|
||||||
if (IsItanium(mangled)) {
|
if (IsItanium(mangled)) {
|
||||||
#ifdef _MSC_VER
|
#ifdef _WIN32
|
||||||
// requires the use of llvm
|
// requires the use of llvm
|
||||||
if (char* p = llvm::itaniumDemangle(mangled); p != nullptr) {
|
if (char* p = llvm::itaniumDemangle(mangled); p != nullptr) {
|
||||||
std::string ret = std::string{p};
|
std::string ret = std::string{p};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue