Skip to content

Commit 9840157

Browse files
committed
std.Target.Query: Don't append glibc version in zigTriple() if ABI isn't GNU.
1 parent 17b40b1 commit 9840157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/Target/Query.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub fn fromTarget(target: Target) Query {
102102
.os_version_min = undefined,
103103
.os_version_max = undefined,
104104
.abi = target.abi,
105-
.glibc_version = target.os.versionRange().gnuLibCVersion(),
105+
.glibc_version = if (target.abi.isGnu()) target.os.versionRange().gnuLibCVersion() else null,
106106
.android_api_level = if (target.abi.isAndroid()) target.os.version_range.linux.android else null,
107107
};
108108
result.updateOsVersionRange(target.os);

0 commit comments

Comments
 (0)