Merge pull request #9015 from LemonBoy/fix-9013

Fix linking issue in cpp codegen
This commit is contained in:
Andreas Rumpf 2018-09-19 22:53:52 +02:00 • committed by GitHub
commit a19d2f76f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,10 @@ type
PNimType = ptr TNimType
when defined(nimTypeNames):
var nimTypeRoot {.compilerProc.}: PNimType
# Declare this variable only once in system.nim
when declared(ThisIsSystem):
var nimTypeRoot {.compilerProc.}: PNimType
else:
var nimTypeRoot {.importc.}: PNimType
# node.len may be the ``first`` element of a set