Merge pull request #5138 from vegansk/4775-args
Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775
This commit is contained in:
commit
0dde24fd98
1 changed files with 1 additions and 1 deletions
|
|
@ -1427,7 +1427,7 @@ elif defined(windows):
|
||||||
if isNil(ownArgv): ownArgv = parseCmdLine($getCommandLine())
|
if isNil(ownArgv): ownArgv = parseCmdLine($getCommandLine())
|
||||||
return TaintedString(ownArgv[i])
|
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.
|
# On Posix, there is no portable way to get the command line from a DLL.
|
||||||
var
|
var
|
||||||
cmdCount {.importc: "cmdCount".}: cint
|
cmdCount {.importc: "cmdCount".}: cint
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue