diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-09-24 09:23:24 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-09-24 09:23:24 +0200 |
| commit | ebbc50d8be3582cb67baa952ce7a52296a04a3c1 (patch) | |
| tree | fd3a12c330d762a9ac72eedb7fad276d33e2bc75 /lib/std/Target/Query.zig | |
| parent | d3ba5f397d3270047bcf05c7ed21c5bd6b97e75b (diff) | |
| download | zig-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 'lib/std/Target/Query.zig')
| -rw-r--r-- | lib/std/Target/Query.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Target/Query.zig b/lib/std/Target/Query.zig index f18d211853..e22fbcbf53 100644 --- a/lib/std/Target/Query.zig +++ b/lib/std/Target/Query.zig @@ -374,7 +374,7 @@ pub fn canDetectLibC(self: Query) bool { if (self.isNativeOs()) return true; if (self.os_tag) |os| { if (builtin.os.tag == .macos and os.isDarwin()) return true; - if (os == .linux and self.abi == .android) return true; + if (os == .linux and self.abi.isAndroid()) return true; } return false; } |
