authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-05 15:19:14+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-05 15:19:14+02:00
log25ee7b0ea8250510a983ec23dc14460385c44a5d
tree59589478d91298efd536a2e9c6e3aefb2a861c4b
parent09efa95f48e977e99f3a3aeb3c3bf89598c73439
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

compiler: Don't require PIC for aarch64-linux-ohos.

While Clang defaults to PIC for this target, it's not actually required.

1 files changed, 1 insertions(+), 2 deletions(-)

src/target.zig+1-2
......@@ -45,8 +45,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool {
4545 return target.isAndroid() or
4646 target.os.tag == .windows or target.os.tag == .uefi or
4747 osRequiresLibC(target) or
48 (linking_libc and target.isGnuLibC()) or
49 (target.cpu.arch == .aarch64 and target.abi == .ohos);
48 (linking_libc and target.isGnuLibC());
5049}
5150
5251pub fn picLevel(target: std.Target) u32 {