mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
compiler: Don't link to nonexistent libc libraries for ohos.
This commit is contained in:
parent
84e192c88b
commit
09efa95f48
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user