Files
Nim/compiler
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
..
2021-01-07 20:26:40 +01:00
2022-03-20 14:02:44 +01:00
2021-03-19 16:53:38 +01:00
2022-06-10 20:32:27 +02:00
2021-11-02 16:30:59 +01:00
2017-01-07 22:35:09 +01:00
2022-03-23 20:34:53 +01:00
2019-11-28 17:13:04 +01:00
2022-03-23 20:34:53 +01:00
2021-05-20 15:48:46 +02:00
2021-01-12 09:36:51 +01:00
2022-03-23 20:34:53 +01: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
2021-01-07 20:26:40 +01:00
2021-04-07 19:54:28 +02:00
2022-07-15 12:37:08 +02:00
2020-11-10 21:53:25 +01:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.