diff --git a/src/target.zig b/src/target.zig index e5df8c86a7a0a409011cac1d7303eb4f8d54e794..43858ea5f200b4f0b4a2271b158e22d2313d62ca 100644 --- a/src/target.zig +++ b/src/target.zig @@ -54,8 +54,7 @@ pub fn libCxxNeedsLibUnwind(target: *const std.Target) bool { /// This function returns whether non-pic code is completely invalid on the given target. pub fn requiresPic(target: *const std.Target, linking_libc: bool) bool { - return target.abi.isAndroid() or - ((target.os.tag == .windows or target.os.tag == .uefi) and (target.cpu.arch == .aarch64 or target.cpu.arch == .x86_64)) or + return ((target.os.tag == .windows or target.os.tag == .uefi) and (target.cpu.arch == .aarch64 or target.cpu.arch == .x86_64)) or target.requiresLibC() or (linking_libc and target.isGnuLibC()); }