test_nimhcr_integration.sh 454 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e
  3. rm -rf nimcache
  4. NIM_FLAGS=${*:- -d:debug}
  5. NIM=nim
  6. $NIM c --outdir:"." $NIM_FLAGS ../../lib/nimrtl.nim
  7. $NIM c --outdir:"." $NIM_FLAGS ../../lib/nimhcr.nim
  8. echo ===== Compiling HCR Integration Test =====
  9. HCR_FLAGS="--forceBuild --hotCodeReloading:on --nimcache:nimcache $NIM_FLAGS"
  10. $NIM $HCR_FLAGS c nimhcr_integration.nim
  11. export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
  12. ./nimhcr_integration $NIM $HCR_FLAGS c nimhcr_integration.nim