authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-19 06:11:51+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-19 06:11:51+02:00
log707137bb527abf1c9b29c85cf8a9023a990240e0
tree3855a3e0e1496cc75555f419c2a4f42e506047e1
parent4642ab5fb9c76de546a0f2f36c0c609007906597
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: fix standard dynamic linker paths for OHOS


1 files changed, 10 insertions(+), 0 deletions(-)

lib/std/Target.zig+10
......@@ -2596,6 +2596,16 @@ pub const DynamicLinker = struct {
25962596 if (ptrBitWidth_cpu_abi(cpu, abi) == 64) "64" else "",
25972597 }) else none,
25982598
2599 else => none,
2600 }
2601 else if (abi.isOpenHarmony())
2602 switch (cpu.arch) {
2603 .aarch64,
2604 .x86_64,
2605 => |arch| if (abi == .ohos) initFmt("/lib/ld-musl-{s}.so.1", .{@tagName(arch)}) else none,
2606
2607 .arm => if (abi == .ohoseabi) init("/lib/ld-musl-arm.so.1") else none,
2608
25992609 else => none,
26002610 }
26012611 else if (abi.isMusl())