summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2023-01-24 11:03:14 -0800
committerGravatar GitHub2023-01-24 11:03:14 -0800
commit44b981fd3eb3db5c15bcc24e61bae45607223ee6 (patch)
tree62d8081e018120505df0832ca9af1671be8e8d1f /src
parentMerge pull request #9492 from german77/joycon_release (diff)
parentcmake: prefer system llvm library (diff)
downloadyuzu-44b981fd3eb3db5c15bcc24e61bae45607223ee6.tar.gz
yuzu-44b981fd3eb3db5c15bcc24e61bae45607223ee6.tar.xz
yuzu-44b981fd3eb3db5c15bcc24e61bae45607223ee6.zip
Merge pull request #9662 from abouvier/cmake-llvm
cmake: prefer system llvm library
Diffstat (limited to 'src')
-rw-r--r--src/common/CMakeLists.txt2
-rw-r--r--src/common/demangle.cpp6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index bd6ac6716..9884a4a0b 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -177,7 +177,7 @@ endif()
177create_target_directory_groups(common) 177create_target_directory_groups(common)
178 178
179target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) 179target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
180target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd demangle) 180target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd LLVM::Demangle)
181 181
182if (YUZU_USE_PRECOMPILED_HEADERS) 182if (YUZU_USE_PRECOMPILED_HEADERS)
183 target_precompile_headers(common PRIVATE precompiled_headers.h) 183 target_precompile_headers(common PRIVATE precompiled_headers.h)
diff --git a/src/common/demangle.cpp b/src/common/demangle.cpp
index f4246f666..3310faf86 100644
--- a/src/common/demangle.cpp
+++ b/src/common/demangle.cpp
@@ -1,13 +1,11 @@
1// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project 1// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later 2// SPDX-License-Identifier: GPL-2.0-or-later
3 3
4#include <llvm/Demangle/Demangle.h>
5
4#include "common/demangle.h" 6#include "common/demangle.h"
5#include "common/scope_exit.h" 7#include "common/scope_exit.h"
6 8
7namespace llvm {
8char* itaniumDemangle(const char* mangled_name, char* buf, size_t* n, int* status);
9}
10
11namespace Common { 9namespace Common {
12 10
13std::string DemangleSymbol(const std::string& mangled) { 11std::string DemangleSymbol(const std::string& mangled) {