Skip to content

Commit

Permalink
Disables paramCount, paramStr when building posix dynlib. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vegansk committed Dec 22, 2016
1 parent 4e481cc commit d35a8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/os.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d35a8fa

Please sign in to comment.