summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-01-06 10:49:02 +0100
committerGitHub <noreply@github.com>2017-01-06 10:49:02 +0100
commit0dde24fd989c6a3a03e5fcb7f7d31b90e214d2a7 (patch)
treec9e9430da6397eec164b6372eb12410ee1f5fc8a /lib
parentdcb609efe45befba0271c9b89f2249fddd6e59be (diff)
parentd35a8fa17461860434d82b1190a06c882808c4c6 (diff)
downloadNim-0dde24fd989c6a3a03e5fcb7f7d31b90e214d2a7.tar.gz
Merge pull request #5138 from vegansk/4775-args
Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/os.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index f077e798a..8a5461567 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