mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-06 07:38:24 +00:00
This reverts commit 90491ea0a9.
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user