From ba1331090c19662dc0eff4d38f80df6ec58c675a Mon Sep 17 00:00:00 2001 From: DravenK Date: Sun, 13 Oct 2024 07:15:11 +0800 Subject: [PATCH] std.Target.Query: fix compilation error (#21669) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #21668 Co-authored-by: Alex Rønne Petersen --- lib/std/Target/Query.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/std/Target/Query.zig b/lib/std/Target/Query.zig index e22fbcbf53..54e580d865 100644 --- a/lib/std/Target/Query.zig +++ b/lib/std/Target/Query.zig @@ -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; }