mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
Merge pull request #5138 from vegansk/4775-args
Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user