Files
Nim/compiler
Ștefan Talpalaru ebb140edda compile pragma: cache the result sooner (#19554)
extccomp.addExternalFileToCompile() relies on hashes to decide whether
an external C file needs recompilation or not.

Due to short-circuit evaluation of boolean expressions, the procedure
that generates a corresponding hash file is not called the first time an
external file is compiled, so an avoidable recompilation is triggered
the next build.

This patch fixes that by moving the proc call with a desired side
effect from its boolean expression, so it's executed unconditionally.

(cherry picked from commit 0c915b5e47)
2022-03-09 16:45:51 +01:00
..
2021-01-07 20:26:40 +01:00
2019-11-28 17:13:04 +01:00
2021-05-12 22:00:37 +02:00
2021-03-19 16:53:38 +01:00
2021-03-29 21:16:11 +02:00
2021-11-03 15:06:53 +01:00
2017-01-07 22:35:09 +01:00
2022-02-23 12:23:48 +01:00
2019-11-28 17:13:04 +01:00
2021-01-07 20:26:40 +01:00
2021-07-27 12:48:27 +02:00
2021-05-20 15:48:46 +02:00
2022-02-23 12:23:48 +01:00
2021-01-12 09:36:51 +01:00
2019-09-27 07:02:54 +02:00
2021-01-07 20:26:40 +01:00
2021-11-03 15:06:53 +01:00
2021-04-09 08:00:13 +02:00
2019-11-28 17:13:04 +01:00
2021-09-02 12:10:14 +02:00
2021-01-07 20:26:40 +01:00
2021-09-03 15:18:55 +02:00
2021-09-04 15:57:16 +02:00
2021-09-28 11:35:04 +02:00
2021-04-07 19:54:28 +02:00
2021-10-13 14:57:25 +02:00
2021-04-24 18:33:29 +01:00
2020-11-10 21:53:25 +01:00
2021-09-06 17:43:03 +02:00
2021-05-09 00:56:37 +02:00
2021-12-06 11:19:17 +01:00
2021-05-12 22:00:37 +02:00
2021-12-06 11:19:17 +01:00
2021-09-29 09:32:39 +02:00
2021-11-03 15:06:53 +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.