mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-09 21:28:13 +00:00
Fix linking issue in cpp codegen
Declare the root symbol only once and have the other modules depending on it emit an `extern` declaration. Fixes #9013
This commit is contained in:
9
tests/cpp/t9013.nim
Normal file
9
tests/cpp/t9013.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
discard """
|
||||
targets: "cpp"
|
||||
cmd: "nim $target --debugger:native $options $file"
|
||||
"""
|
||||
|
||||
# The --debugger switch is needed in order to enable the defined(nimTypeNames)
|
||||
# code path in hti.nim
|
||||
import typeinfo
|
||||
var tt: Any
|
||||
Reference in New Issue
Block a user