summaryrefslogtreecommitdiff
path: root/src/stacktrace.cc
diff options
context:
space:
mode:
authorJingyun Hua <huajingyun@loongson.cn>2022-02-08 20:47:10 +0800
committerJingyun Hua <huajingyun@loongson.cn>2022-02-08 20:47:10 +0800
commitfe85bbdf4cb891a67a8e2109c1c22a33aa958c7e (patch)
tree25492f97dc329ae14739afde80795d3a8f32fcf4 /src/stacktrace.cc
parente80652b6279a22bd4a4264e4403cd1981293e82f (diff)
downloadgperftools-fe85bbdf4cb891a67a8e2109c1c22a33aa958c7e.tar.gz
Add support for LoongArch.
Only 64-bit is supported at the moment. Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
Diffstat (limited to 'src/stacktrace.cc')
-rw-r--r--src/stacktrace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stacktrace.cc b/src/stacktrace.cc
index 2a2c648..32b16fa 100644
--- a/src/stacktrace.cc
+++ b/src/stacktrace.cc
@@ -219,7 +219,7 @@ static GetStackImplementation *all_impls[] = {
// ppc and i386 implementations prefer arch-specific asm implementations.
// arm's asm implementation is broken
-#if defined(__i386__) || defined(__ppc__) || defined(__PPC__)
+#if defined(__i386__) || defined(__ppc__) || defined(__PPC__) || defined(__loongarch64)
#if !defined(NO_FRAME_POINTER)
#define TCMALLOC_DONT_PREFER_LIBUNWIND
#endif