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