Fix #16937; --clib option pass library name to backend C compiler correctly (#19754)

* 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:
Tomohiro 2022-09-02 02:57:17 +09:00 • committed by GitHub
commit 2a34d143ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,3 @@
proc test(): int {.importc, cdecl.}
doAssert test() == 123