| author | |
| committer | |
| log | 25ee7b0ea8250510a983ec23dc14460385c44a5d |
| tree | 59589478d91298efd536a2e9c6e3aefb2a861c4b |
| parent | 09efa95f48e977e99f3a3aeb3c3bf89598c73439 |
| signature | Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM |
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 | 45 | return target.isAndroid() or |
| 46 | 46 | target.os.tag == .windows or target.os.tag == .uefi or |
| 47 | 47 | 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()); | |
| 50 | 49 | } |
| 51 | 50 | |
| 52 | 51 | pub fn picLevel(target: std.Target) u32 { |