From 8aae0d87b5808e3674f2d37c8de7b10e305de9da Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Mon, 20 May 2024 13:43:09 +0300 Subject: Target: add OpenHarmonyOS ABI Closes #20009 --- src/target.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/target.zig') diff --git a/src/target.zig b/src/target.zig index 8f61b2ba03..6af301e001 100644 --- a/src/target.zig +++ b/src/target.zig @@ -45,7 +45,8 @@ 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()); + (linking_libc and target.isGnuLibC()) or + (target.abi == .ohos and target.cpu.arch == .aarch64); } /// This is not whether the target supports Position Independent Code, but whether the -fPIC -- cgit v1.2.3