* Fix 16937: Make --clib option works * Make tests/compiler/tcmdlineclib.nim works from any current dir * Try to fix link error on macosx * Add a comment to tests/compiler/tcmdlineclib.nims Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
This commit is contained in:
parent
a95b6391fd
commit
2a34d143ac
4 changed files with 16 additions and 1 deletions
10
tests/compiler/tcmdlineclib.nims
Normal file
10
tests/compiler/tcmdlineclib.nims
Normal file
|
|
@ -0,0 +1,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())
|
||||
Loading…
Add table
Add a link
Reference in a new issue