mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Target.Query: fix compilation error (#21669)
closes #21668 Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
This commit is contained in:
parent
f7c588286d
commit
ba1331090c
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue