Merge pull request #5138 from vegansk/4775-args

Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775
This commit is contained in:
Andreas Rumpf
2017-01-06 10:49:02 +01:00
committed by GitHub

View File

@@ -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