authorgravatar for longxianwen@outlook.comDravenK <longxianwen@outlook.com> 2024-10-13 07:15:11+08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-10-12 23:15:11+00:00
logba1331090c19662dc0eff4d38f80df6ec58c675a
treeb8473cd08a043f196c23ae9e23d0472cece920ec
parentf7c588286dfb63af54e3bd77898e4c39b791ec89
signaturebadge-check Signed by PGP key B5690EEEBB952194

std.Target.Query: fix compilation error (#21669)

closes #21668 Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>

1 files changed, 3 insertions(+), 1 deletions(-)

lib/std/Target/Query.zig+3-1
......@@ -374,7 +374,9 @@ pub fn canDetectLibC(self: Query) bool {
374374 if (self.isNativeOs()) return true;
375375 if (self.os_tag) |os| {
376376 if (builtin.os.tag == .macos and os.isDarwin()) return true;
377 if (os == .linux and self.abi.isAndroid()) return true;
377 if (os == .linux) {
378 if (self.abi) |abi| if (abi.isAndroid()) return true;
379 }
378380 }
379381 return false;
380382}