aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-10-05 15:14:16 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-10-05 15:14:16 +0200
commit09efa95f48e977e99f3a3aeb3c3bf89598c73439 (patch)
treeb6b3bf51bfe87c61c5cd5b411890e24e0c2cb602 /src
parent84e192c88b2a970b249c7a7480e14717535b6096 (diff)
downloadzig-09efa95f48e977e99f3a3aeb3c3bf89598c73439.tar.gz
zig-09efa95f48e977e99f3a3aeb3c3bf89598c73439.zip
compiler: Don't link to nonexistent libc libraries for ohos.
Diffstat (limited to 'src')
-rw-r--r--src/target.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig
index 2d7917c196..25129a6224 100644
--- 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",