DLLs should work again; fixes #169
This commit is contained in:
parent
34efc2cdf9
commit
ed915a309e
12 changed files with 29 additions and 410 deletions
1
tests/dll/client.nimrod.cfg
Normal file
1
tests/dll/client.nimrod.cfg
Normal file
|
|
@ -0,0 +1 @@
|
|||
--define:useNimRtl
|
||||
|
|
@ -25,3 +25,10 @@ proc newOp(k: TNodeKind, a, b: PNode): PNode {.exportc: "newOp", dynlib.} =
|
|||
|
||||
proc buildTree(x: int): PNode {.exportc: "buildTree", dynlib.} =
|
||||
result = newOp(nkMul, newOp(nkAdd, newLit(x), newLit(x)), newLit(x))
|
||||
|
||||
when false:
|
||||
# Test the GC:
|
||||
for i in 0..100_000:
|
||||
discard buildTree(2)
|
||||
|
||||
echo "Done"
|
||||
|
|
|
|||
2
tests/dll/server.nimrod.cfg
Normal file
2
tests/dll/server.nimrod.cfg
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
--define:useNimRtl
|
||||
--app:lib
|
||||
Loading…
Add table
Add a link
Reference in a new issue