kraptor
efcb89fa70
Correctly detect major version of GCC ( #20059 )
...
We were doing a very poor job detecting the major version of GCC by
parsing the output of --version.
This patches uses -dumpversion to make this parsing straightforward and
it also fixes a bunch of compiling issues on different platforms with
custom output for --version switches. For example, openSUSE first line
of the output includes the revision number and the parsing that was
being done did mix that number with the major version and breaks
building the nim compiler (as it doesn't find the 3 dots for an X.Y.Z semver
format, hence returning "false").
In this patch, we simply use -dumpversion (which has been at least from
1993, so we are safe :)
2022-07-18 21:24:39 +02:00
..
2022-07-14 14:20:40 +02:00
2021-09-29 11:14:47 +02:00
2021-01-07 20:26:40 +01:00
2022-03-23 20:34:53 +01:00
2022-06-04 06:25:21 +02:00
2022-07-12 13:07:18 +02:00
2021-08-13 09:35:48 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-03-20 14:02:44 +01:00
2022-06-15 16:38:12 +02:00
2020-01-23 14:25:22 +01:00
2021-03-19 16:53:38 +01:00
2021-04-17 11:14:09 +02:00
2022-07-04 13:52:44 +02:00
2021-01-27 22:35:43 +01:00
2020-09-16 14:57:01 +02:00
2022-06-10 20:32:27 +02:00
2022-03-23 20:34:53 +01:00
2022-06-27 17:57:07 +02:00
2022-02-25 20:33:28 +01:00
2022-03-23 20:34:53 +01:00
2022-07-11 11:28:52 +02:00
2022-02-04 17:10:24 -05:00
2022-07-17 09:24:40 +02:00
2022-03-23 20:34:53 +01:00
2021-11-02 16:30:59 +01:00
2017-01-07 22:35:09 +01:00
2022-06-10 20:40:08 +02:00
2022-07-12 19:35:08 +02:00
2022-03-23 20:34:53 +01:00
2022-05-30 18:52:19 +02:00
2022-07-16 17:41:18 -04:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-07-14 14:20:40 +02:00
2021-06-02 09:02:14 -07:00
2022-07-18 21:24:39 +02:00
2021-09-25 13:22:00 +02:00
2019-11-28 17:13:04 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-04-06 16:17:09 +02:00
2020-06-01 19:21:41 +02:00
2022-07-09 06:46:05 +02:00
2021-10-14 23:55:05 +08:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-05-23 06:17:32 +02:00
2021-05-20 15:48:46 +02:00
2022-06-11 18:23:31 +02:00
2021-03-12 15:34:42 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2021-03-09 20:19:24 +01:00
2022-07-15 19:27:54 +02:00
2022-07-14 14:20:40 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-04-04 12:05:23 +02:00
2021-01-12 09:36:51 +01:00
2021-04-17 11:14:09 +02:00
2022-07-15 19:27:54 +02:00
2022-01-15 13:19:05 +01:00
2022-06-13 11:33:44 +02:00
2022-05-30 18:52:19 +02:00
2022-05-30 18:52:19 +02:00
2022-07-14 14:20:40 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2021-09-29 11:14:47 +02:00
2022-07-15 19:27:54 +02:00
2022-03-23 20:34:53 +01:00
2022-03-26 11:50:15 +01:00
2021-10-17 16:24:43 +02:00
2022-03-23 20:34:53 +01:00
2022-04-21 15:06:09 -04:00
2022-03-23 20:34:53 +01:00
2021-10-12 15:41:30 +02:00
2019-09-27 07:02:54 +02:00
2022-01-04 11:10:46 +01:00
2022-07-15 19:56:05 +02:00
2022-05-30 18:52:19 +02:00
2022-05-30 18:52:19 +02:00
2022-03-01 07:46:08 +01:00
2022-04-25 12:00:23 +02:00
2021-06-30 07:16:31 +02:00
2022-06-13 11:33:44 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2018-05-27 19:19:12 +02:00
2022-07-14 14:20:40 +02:00
2020-11-25 07:48:27 +01:00
2020-09-22 18:24:13 +02:00
2020-05-11 13:50:40 +02:00
2022-04-25 11:19:21 +02:00
2021-07-09 11:41:28 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-07-10 09:37:15 +02:00
2020-09-11 01:04:07 +02:00
2022-03-23 20:34:53 +01:00
2021-09-27 22:23:31 +02:00
2021-10-26 11:29:07 +02:00
2022-03-23 20:34:53 +01:00
2022-07-14 14:20:40 +02:00
2021-01-07 20:26:40 +01:00
2022-06-13 09:01:40 +02:00
2022-07-14 14:20:40 +02:00
2021-10-26 11:29:07 +02:00
2021-04-17 11:14:09 +02:00
2022-07-14 14:20:40 +02:00
2021-12-04 07:42:34 +01:00
2021-04-07 19:54:28 +02:00
2022-04-25 11:07:55 +02:00
2022-07-14 14:20:40 +02:00
2022-07-15 12:37:08 +02:00
2022-07-14 14:20:40 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2021-01-02 07:30:39 +01:00
2022-03-09 07:22:10 +01:00
2021-04-17 11:14:09 +02:00
2022-04-04 12:05:23 +02:00
2020-11-10 21:53:25 +01:00
2022-07-15 19:56:33 +02:00
2022-04-25 12:00:23 +02:00
2020-04-03 09:10:45 +02:00
2022-03-23 20:34:53 +01:00
2020-11-30 23:36:38 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2021-10-28 19:20:52 +02:00
2022-06-29 22:37:24 +08:00
2022-07-14 14:20:40 +02:00
2021-02-17 11:52:46 +01:00
2022-05-30 10:41:24 +02:00
2022-03-23 20:34:53 +01:00
2022-06-22 08:43:58 +02:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2022-07-14 14:20:40 +02:00
2020-07-09 19:21:20 +02:00
2022-07-14 14:20:40 +02:00