Disables `paramCount, paramStr` when building posix dynlib. Fixes #4775

This commit is contained in:
Anatoly Galiulin
2016-12-22 13:55:55 +07:00
parent 4e481cc316
commit d35a8fa174

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