summary refs log blame commit diff stats
path: root/tests/compiler/tcmdlineclib.nims
blob: f7899d92e7c939d29bb9049a73033d0d31ff31bc (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                  
import os

selfExec "c --app:lib " & (projectDir() / "samplelib.nim")
switch("clibdir", projectDir())
--clib:samplelib

# Make test executable can load sample shared library.
# `-rpath` option doesn't work and ignored on Windows.
# But the dll file in same directory as executable file is loaded.
switch("passL", "-Wl,-rpath," & projectDir())