tcmdlineclib.nims 343 B

1234567891011
  1. import os
  2. selfExec "c --app:lib " & (projectDir() / "samplelib.nim")
  3. switch("clibdir", projectDir())
  4. --clib:samplelib
  5. # Make test executable can load sample shared library.
  6. # `-rpath` option doesn't work and ignored on Windows.
  7. # But the dll file in same directory as executable file is loaded.
  8. switch("passL", "-Wl,-rpath," & projectDir())