demangling disabled for windows since windows sucks

This commit is contained in:
lizzie 2026-04-27 16:52:28 +00:00
parent f0a335600b
commit e4fcc15550
2 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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};