This reverts commit 90491ea0a9.
This commit is contained in:
parent
2b368bcdd7
commit
1e303100f8
2 changed files with 27 additions and 0 deletions
10
tests/dll/test_nimhcr_integration.bat
Normal file
10
tests/dll/test_nimhcr_integration.bat
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
set NIM=nim
|
||||||
|
set NIM_FLAGS=-d:debug
|
||||||
|
|
||||||
|
%NIM% c --outdir:"." %NIM_FLAGS% ../../lib/nimrtl.nim
|
||||||
|
%NIM% c --outdir:"." %NIM_FLAGS% ../../lib/nimhcr.nim
|
||||||
|
|
||||||
|
set HCR_FLAGS=--forceBuild --hotCodeReloading:on --nimcache:nimcache %NIM_FLAGS%
|
||||||
|
|
||||||
|
%NIM% %HCR_FLAGS% c nimhcr_integration.nim
|
||||||
|
nimhcr_integration %NIM% %HCR_FLAGS% c nimhcr_integration.nim
|
||||||
17
tests/dll/test_nimhcr_integration.sh
Executable file
17
tests/dll/test_nimhcr_integration.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf nimcache
|
||||||
|
|
||||||
|
NIM_FLAGS=${*:- -d:debug}
|
||||||
|
NIM=nim
|
||||||
|
|
||||||
|
$NIM c --outdir:"." $NIM_FLAGS ../../lib/nimrtl.nim
|
||||||
|
$NIM c --outdir:"." $NIM_FLAGS ../../lib/nimhcr.nim
|
||||||
|
|
||||||
|
echo ===== Compiling HCR Integration Test =====
|
||||||
|
HCR_FLAGS="--forceBuild --hotCodeReloading:on --nimcache:nimcache $NIM_FLAGS"
|
||||||
|
$NIM $HCR_FLAGS c nimhcr_integration.nim
|
||||||
|
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
|
||||||
|
./nimhcr_integration $NIM $HCR_FLAGS c nimhcr_integration.nim
|
||||||
Loading…
Add table
Add a link
Reference in a new issue