mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-26 01:04:00 +00:00
Merge pull request #9015 from LemonBoy/fix-9013
Fix linking issue in cpp codegen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user