mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
compiler: Don't require PIC for aarch64-linux-ohos.
While Clang defaults to PIC for this target, it's not actually required.
This commit is contained in:
parent
09efa95f48
commit
25ee7b0ea8
1 changed files with 1 additions and 2 deletions
|
|
@ -45,8 +45,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool {
|
|||
return target.isAndroid() or
|
||||
target.os.tag == .windows or target.os.tag == .uefi or
|
||||
osRequiresLibC(target) or
|
||||
(linking_libc and target.isGnuLibC()) or
|
||||
(target.cpu.arch == .aarch64 and target.abi == .ohos);
|
||||
(linking_libc and target.isGnuLibC());
|
||||
}
|
||||
|
||||
pub fn picLevel(target: std.Target) u32 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue