Commit ba1331090c

DravenK <longxianwen@outlook.com>
2024-10-13 01:15:11
std.Target.Query: fix compilation error (#21669)
closes #21668 Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
1 parent f7c5882
Changed files (1)
lib
std
Target
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;
 }