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
signature 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 {...@@ -45,8 +45,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool {
45 return target.isAndroid() or45 return target.isAndroid() or
46 target.os.tag == .windows or target.os.tag == .uefi or46 target.os.tag == .windows or target.os.tag == .uefi or
47 osRequiresLibC(target) or47 osRequiresLibC(target) or
48 (linking_libc and target.isGnuLibC()) or48 (linking_libc and target.isGnuLibC());
49 (target.cpu.arch == .aarch64 and target.abi == .ohos);
50}49}
5150
52pub fn picLevel(target: std.Target) u32 {51pub fn picLevel(target: std.Target) u32 {