Skip to content

Commit

Permalink
add nptl handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yxd-ym committed Aug 11, 2024
1 parent dd52835 commit 6845142
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/glibc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,13 @@ fn add_include_dirs_arch(
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" }));
if (opt_nptl) |nptl| {
try args.append("-I");
try args.append(try path.join(arena, &[_][]const u8{ dir, "loongarch", nptl }));
} else {
try args.append("-I");
try args.append(try path.join(arena, &[_][]const u8{ dir, "loongarch" }));
}
}
}

Expand Down

0 comments on commit 6845142

Please sign in to comment.