From d35a8fa17461860434d82b1190a06c882808c4c6 Mon Sep 17 00:00:00 2001 From: Anatoly Galiulin Date: Thu, 22 Dec 2016 13:55:55 +0700 Subject: [PATCH] Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775 --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f077e798a8..8a54615676 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1427,7 +1427,7 @@ elif defined(windows): if isNil(ownArgv): ownArgv = parseCmdLine($getCommandLine()) return TaintedString(ownArgv[i]) -elif not defined(createNimRtl): +elif not defined(createNimRtl) and not(defined(posix) and appType == "lib"): # On Posix, there is no portable way to get the command line from a DLL. var cmdCount {.importc: "cmdCount".}: cint