Skip to content

Commit

Permalink
std.Target.Query: fix compilation error (ziglang#21669)
Browse files Browse the repository at this point in the history
closes ziglang#21668

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
  • Loading branch information
2 people authored and richerfu committed Oct 28, 2024
1 parent 6aed73c commit 38959a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/std/Target/Query.zig
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ 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.isAndroid()) return true;
if (os == .linux) {
if (self.abi) |abi| if (abi.isAndroid()) return true;
}
}
return false;
}
Expand Down

0 comments on commit 38959a5

Please sign in to comment.