diff options
author | Anatoly Galiulin <galiulin.anatoly@gmail.com> | 2016-12-22 13:55:55 +0700 |
---|---|---|
committer | Anatoly Galiulin <galiulin.anatoly@gmail.com> | 2016-12-22 13:55:55 +0700 |
commit | d35a8fa17461860434d82b1190a06c882808c4c6 (patch) | |
tree | b1e4467075b326e33ca11ea3a24fba6d26f8a06c | |
parent | 4e481cc316229436b87aaf035d70f686d0aaee5f (diff) | |
download | Nim-d35a8fa17461860434d82b1190a06c882808c4c6.tar.gz |
Disables ``paramCount``, ``paramStr`` when building posix dynlib. Fixes #4775
-rw-r--r-- | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f077e798a..8a5461567 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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 |