aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-09-24 09:23:24 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-09-24 09:23:24 +0200
commitebbc50d8be3582cb67baa952ce7a52296a04a3c1 (patch)
treefd3a12c330d762a9ac72eedb7fad276d33e2bc75 /src/codegen
parentd3ba5f397d3270047bcf05c7ed21c5bd6b97e75b (diff)
downloadzig-ebbc50d8be3582cb67baa952ce7a52296a04a3c1.tar.gz
zig-ebbc50d8be3582cb67baa952ce7a52296a04a3c1.zip
std.Target: Introduce Abi.androideabi to distinguish the soft float case.
Abi.android on its own is not enough to know whether soft float or hard float should be used. In the C world, androideabi is typically used for the soft float case, so let's go with that. Note that Android doesn't have a hard float ABI, so no androideabihf. Closes #21488.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 816975955a..ac3d8bcf20 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -172,6 +172,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.eabi => "eabi",
.eabihf => "eabihf",
.android => "android",
+ .androideabi => "androideabi",
.musl => "musl",
.musleabi => "musleabi",
.musleabihf => "musleabihf",