diff options
| author | r00ster91 <r00ster91@proton.me> | 2023-02-21 18:39:22 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-17 13:17:34 -0700 |
| commit | 6e84f469904a24615a6721265a88ad8dcb4ed83a (patch) | |
| tree | d390e7738b996686749adbbd9a1c18f647058b3b /src/glibc.zig | |
| parent | 96acc204b2c6080f0169ca3721c3b95a433c185b (diff) | |
| download | zig-6e84f469904a24615a6721265a88ad8dcb4ed83a.tar.gz zig-6e84f469904a24615a6721265a88ad8dcb4ed83a.zip | |
std: replace builtin.Version with SemanticVersion
Diffstat (limited to 'src/glibc.zig')
| -rw-r--r-- | src/glibc.zig | 4 |
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 |
