From 25ee7b0ea8250510a983ec23dc14460385c44a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 5 Oct 2024 15:19:14 +0200 Subject: [PATCH] compiler: Don't require PIC for aarch64-linux-ohos. While Clang defaults to PIC for this target, it's not actually required. --- src/target.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/target.zig b/src/target.zig index 25129a6224bb44f40931a53db953a6907181ec57..95c9798f65ade51126dd3d7939a14c96b9355d9b 100644 --- a/src/target.zig +++ b/src/target.zig @@ -45,8 +45,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool { return target.isAndroid() or target.os.tag == .windows or target.os.tag == .uefi or osRequiresLibC(target) or - (linking_libc and target.isGnuLibC()) or - (target.cpu.arch == .aarch64 and target.abi == .ohos); + (linking_libc and target.isGnuLibC()); } pub fn picLevel(target: std.Target) u32 { -- 2.54.0