Eric Joldasov
6bf554f9a7
std.zig.system.NativeTargetInfo: fix glibc version parsing
...
In most cases "GLIBC_2.X" strings and `/lib/libc-2.x.so` files do not contain third (`patch`) field,
which causes std.SemanticVersion.parse function to return error. To fix this, we
reuse [now-public] std.zig.CrossTarget.parseVersion function,
which accounts for this third field and makes it 0 in case it was not found.
This new behaviour is similar to std.builtin.Version.parse, which was removed in
6e84f46990
Fixes regression from 6e84f46990
and https://github.com/ziglang/zig/pull/13998 .
Related: https://github.com/ziglang/zig/issues/17626 . Results with `zig end`:
Before: `"target": "x86_64-linux.6.5.7...6.5.7-gnu.2.19",`
After: `"target": "x86_64-linux.6.5.7...6.5.7-gnu.2.36",`
Also, while we are here, write explicit error sets and remove duplicate
logic from std.zig.system.darwin.macos.parseSystemVersion .
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-10-23 06:00:53 -04:00
..
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-03 11:04:41 -07:00
2023-10-22 15:46:43 -04:00
2023-10-22 17:48:03 -04:00
2023-10-22 15:46:43 -04:00
2023-10-21 21:24:55 +00:00
2023-10-22 15:46:43 -04:00
2023-10-22 16:02:33 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 17:48:03 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-09-07 21:56:57 +03:00
2023-06-24 16:56:39 -07:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-21 21:24:55 +00:00
2023-09-19 09:37:53 -07:00
2023-09-06 19:06:32 +03:00
2023-10-22 15:46:43 -04:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-10-03 02:51:01 -07:00
2023-10-23 06:00:53 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-06-16 13:44:09 -07:00
2023-04-21 23:08:48 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-07-21 19:56:46 -04:00
2023-07-03 13:58:03 -04:00
2023-04-22 13:09:15 +03:00
2023-04-28 13:24:43 -07:00
2023-10-22 14:47:20 -04:00
2023-08-24 22:38:47 -07:00
2023-10-02 15:31:49 -06:00
2023-10-22 14:47:20 -04:00
2023-09-02 00:18:53 +02:00
2023-02-22 00:11:20 +11:00
2023-09-14 11:03:15 -07:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-08-06 15:18:50 -04:00
2023-10-02 15:31:49 -06:00
2023-10-21 21:38:41 -04:00
2023-10-21 21:24:55 +00:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-17 13:55:01 -05:00
2023-08-06 15:18:50 -04:00
2023-10-21 20:52:59 -05:00
2023-01-11 15:39:48 -08:00
2023-10-03 14:55:17 -07:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-08-28 17:41:37 -07:00
2023-06-19 12:34:42 -07:00
2023-10-03 14:55:17 -07:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-09-27 11:24:28 -07:00
2023-10-22 15:46:43 -04:00
2023-09-06 11:14:24 +03:00
2023-10-22 15:46:43 -04:00
2023-10-21 05:13:21 -04:00
2023-06-24 16:56:39 -07:00
2023-06-30 23:23:03 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-10-08 16:54:31 -07:00
2023-10-13 00:44:30 +03:00
2023-08-15 12:09:28 +02:00
2023-10-21 19:19:35 +01:00
2023-10-22 15:46:43 -04:00
2023-10-23 06:00:53 -04:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-06-24 16:56:39 -07:00
2023-10-12 16:13:32 -07:00
2023-10-21 20:52:58 -05:00
2023-10-08 16:54:31 -07:00
2023-10-20 20:12:50 -04:00
2023-10-15 14:00:26 +02:00
2023-10-02 15:31:49 -06:00
2023-10-22 15:46:43 -04:00
2023-10-22 15:46:43 -04:00
2023-06-24 16:56:39 -07:00
2023-10-22 15:46:43 -04:00
2023-10-22 17:48:03 -04:00
2023-10-21 21:24:55 +00:00
2023-10-21 21:24:55 +00:00
2023-10-08 16:54:31 -07:00