mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 13:33:22 +00:00
* 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>
11 lines
343 B
Nim
11 lines
343 B
Nim
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())
|