aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-11-28 21:22:00 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2024-11-28 22:04:00 +0100
commitf0f2dc52cc8ea3f0ffa62382e76b6b3a7f1d80b2 (patch)
tree3042a675d59433a9631bc9eede2400fcabdc8990 /src/codegen
parent7fe219998f016bcd1aa530167fde9461acad5d0d (diff)
downloadzig-f0f2dc52cc8ea3f0ffa62382e76b6b3a7f1d80b2.tar.gz
zig-f0f2dc52cc8ea3f0ffa62382e76b6b3a7f1d80b2.zip
llvm: Lower ohoseabi to ohos instead of verbatim.
LLVM doesn't recognize ohoseabi.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 737aa51107..0a755e25a8 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -280,8 +280,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.cygnus => "cygnus",
.simulator => "simulator",
.macabi => "macabi",
- .ohos => "ohos",
- .ohoseabi => "ohoseabi",
+ .ohos, .ohoseabi => "ohos",
};
try llvm_triple.appendSlice(llvm_abi);