fix libunwind include path

This commit is contained in:
Li Jie
2025-08-21 16:54:10 +08:00
parent 9a90eaed76
commit 21189f378e

View File

@@ -131,6 +131,7 @@ func use(goos, goarch string, wasiThreads bool) (export Export, err error) {
if runtime.GOOS == goos && runtime.GOARCH == goarch {
clangLib := filepath.Join(clangRoot, "lib")
clangInc := filepath.Join(clangRoot, "include")
// not cross compile
// Set up basic flags for non-cross-compile
export.LDFLAGS = []string{
@@ -140,6 +141,7 @@ func use(goos, goarch string, wasiThreads bool) (export Export, err error) {
"-Wl,--error-limit=0",
"-fuse-ld=lld",
}
export.CFLAGS = append(export.CFLAGS, "-I"+clangInc)
// Add platform-specific rpath flags
switch goos {