mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
compiler: do not enforce PIC for Android
This requirement was put here many years ago in stage1 and I have no idea why because Android does not actually require PIC.
This commit is contained in:
+1
-2
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user