diff options
author | Tomohiro <gpuppur@gmail.com> | 2022-09-02 02:57:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 13:57:17 -0400 |
commit | 2a34d143ac408df0e3716fbbf53dcca490ef9d49 (patch) | |
tree | d5f79bccb1916431c963990f68e9a8c83d723f9c /compiler | |
parent | a95b6391fd353074daf2dbfed4d73e8d57f314ca (diff) | |
download | Nim-2a34d143ac408df0e3716fbbf53dcca490ef9d49.tar.gz |
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>
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index a71dae9d9..6e8568ffe 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -803,7 +803,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "clib": expectArg(conf, switch, arg, pass, info) if pass in {passCmd2, passPP}: - conf.cLinkedLibs.add processPath(conf, arg, info).string + conf.cLinkedLibs.add arg of "header": if conf != nil: conf.headerFile = arg incl(conf.globalOptions, optGenIndex) |