aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2023-02-21 18:39:22 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-06-17 13:17:34 -0700
commit6e84f469904a24615a6721265a88ad8dcb4ed83a (patch)
treed390e7738b996686749adbbd9a1c18f647058b3b /src/glibc.zig
parent96acc204b2c6080f0169ca3721c3b95a433c185b (diff)
downloadzig-6e84f469904a24615a6721265a88ad8dcb4ed83a.tar.gz
zig-6e84f469904a24615a6721265a88ad8dcb4ed83a.zip
std: replace builtin.Version with SemanticVersion
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index 4ab00eeed9..bb38c2c987 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -5,7 +5,7 @@ const log = std.log;
const fs = std.fs;
const path = fs.path;
const assert = std.debug.assert;
-const Version = std.builtin.Version;
+const Version = std.SemanticVersion;
const target_util = @import("target.zig");
const Compilation = @import("Compilation.zig");
@@ -172,7 +172,7 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: *std.Progr
const target = comp.getTarget();
const target_ver = target.os.version_range.linux.glibc;
- const start_old_init_fini = target_ver.order(.{ .major = 2, .minor = 33 }) != .gt;
+ const start_old_init_fini = target_ver.order(.{ .major = 2, .minor = 33, .patch = 0 }) != .gt;
// In all cases in this function, we add the C compiler flags to
// cache_exempt_flags rather than extra_flags, because these arguments