Skip to content

Commit

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

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
  • Loading branch information
dravenk and alexrp authored Oct 12, 2024
1 parent f7c5882 commit ba13310
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 ba13310

Please sign in to comment.