diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-03-09 00:04:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-09 00:04:39 +0100 |
commit | 6cb26d8010cecf480d909a80e143c168996cfd34 (patch) | |
tree | 968196ee1299d7df28c0ac732800c9d4e5d9d9dd /compiler/ic/cbackend.nim | |
parent | 761ec2ccc8d533b198eab79fd1d54338f5fcdb08 (diff) | |
download | Nim-6cb26d8010cecf480d909a80e143c168996cfd34.tar.gz |
IC: compilerprocs are handled correctly (#17265)
* IC: compilerprocs are handled correctly * IC: special logic for .exportC'ed procs * IC: 'hello world' compiles for the first round (2nd round fails) * IC: hello world seems to work
Diffstat (limited to 'compiler/ic/cbackend.nim')
-rw-r--r-- | compiler/ic/cbackend.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ic/cbackend.nim b/compiler/ic/cbackend.nim index eda54c438..52a4a3339 100644 --- a/compiler/ic/cbackend.nim +++ b/compiler/ic/cbackend.nim @@ -83,6 +83,7 @@ proc aliveSymsChanged(config: ConfigRef; position: int; alive: AliveSyms): bool proc generateCode*(g: ModuleGraph) = ## The single entry point, generate C(++) code for the entire ## Nim program aka `ModuleGraph`. + initStrTable(g.compilerprocs) var alive = computeAliveSyms(g.packed, g.config) for i in 0..high(g.packed): |