commit 09efa95f48e977e99f3a3aeb3c3bf89598c73439 (tree)
parent 84e192c88b2a970b249c7a7480e14717535b6096
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sat, 5 Oct 2024 15:14:16 +0200
compiler: Don't link to nonexistent libc libraries for ohos.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/target.zig b/src/target.zig
@@ -306,7 +306,7 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {
"-lc",
"-lnetwork",
},
- else => if (target.isAndroid()) &[_][]const u8{
+ else => if (target.isAndroid() or target.abi.isOpenHarmony()) &[_][]const u8{
"-lm",
"-lc",
"-ldl",