From e5ebf2720f6b1c59e3569acb81b260038541e787 Mon Sep 17 00:00:00 2001 From: YANG Xudong Date: Sat, 10 Aug 2024 10:13:15 +0800 Subject: [PATCH] add include --- src/glibc.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glibc.zig b/src/glibc.zig index 16abd4879766..c9d43f0199c1 100644 --- a/src/glibc.zig +++ b/src/glibc.zig @@ -651,6 +651,9 @@ fn add_include_dirs_arch( try args.append("-I"); try args.append(try path.join(arena, &[_][]const u8{ dir, "riscv" })); } + } else if (arch.isLoongArch()) { + try args.append("-I"); + try args.append(try path.join(arena, &[_][]const u8{ dir, "loongarch" })); } }