runtime: fix libunwind to compatible with homebrew linux

This commit is contained in:
Li Jie
2025-03-04 09:58:21 +08:00
parent d483b13107
commit 52a77f9efb
4 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
#if defined(__linux__)
#define UNW_LOCAL_ONLY
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <features.h>
#endif

View File

@@ -11,8 +11,8 @@ import (
)
const (
LLGoPackage = "link"
LLGoFiles = "_wrap/debug.c"
LLGoPackage = "link: $(llvm-config --ldflags --libs); -lunwind"
LLGoFiles = "$(llvm-config --cflags): _wrap/debug.c"
)
type Info struct {

View File

@@ -1,6 +1,8 @@
#if defined(__linux__)
#define UNW_LOCAL_ONLY
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <features.h>
#endif

View File

@@ -11,8 +11,8 @@ import (
)
const (
LLGoPackage = "link"
LLGoFiles = "_wrap/debug.c"
LLGoPackage = "link: $(llvm-config --ldflags --libs); -lunwind"
LLGoFiles = "$(llvm-config --cflags): _wrap/debug.c"
)
type Info struct {