aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-04 17:26:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-04 17:26:06 -0700
commit362460ec24d802e6fba7f45ddff5f969642839df (patch)
tree2cdeb8469c1cda5b6d50b86f38d87c4b5a3ea2b1 /src/target.zig
parentcbaaf6477fa314257a550515886563d6e7a06fc7 (diff)
downloadzig-362460ec24d802e6fba7f45ddff5f969642839df.tar.gz
zig-362460ec24d802e6fba7f45ddff5f969642839df.zip
minor cosmetic fixups
* fix typos and redundancies in docs * use Target.isGnuLibc
Diffstat (limited to 'src/target.zig')
-rw-r--r--src/target.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig
index acfa089034..8c66017e79 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -164,7 +164,7 @@ pub fn canBuildLibC(target: std.Target) bool {
return ver.min.order(libc.os_ver.?) != .lt;
}
// Ensure glibc (aka *-linux-gnu) version is supported
- if ((target.os.tag == .linux) and target.abi.isGnu()) {
+ if (target.isGnuLibC()) {
const min_glibc_ver = libc.glibc_min orelse glibc_min_version;
const target_glibc_ver = target.os.version_range.linux.glibc;
return target_glibc_ver.order(min_glibc_ver) != .lt;