compiler: Don't link to nonexistent libc libraries for ohos.

This commit is contained in:
Alex Rønne Petersen
2024-10-05 15:14:16 +02:00
parent 84e192c88b
commit 09efa95f48

View File

@@ -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",