summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/os.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index d54dc5b83..fda482bc3 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -2770,6 +2770,10 @@ when declared(paramCount) or defined(nimdoc):
     result = @[]
     for i in 1..paramCount():
       result.add(paramStr(i))
+else:
+  proc commandLineParams*(): seq[TaintedString] {.error:
+  "commandLineParams() unsupported by dynamic libraries".} =
+    discard
 
 when not weirdTarget and (defined(freebsd) or defined(dragonfly)):
   proc sysctl(name: ptr cint, namelen: cuint, oldp: pointer, oldplen: ptr csize_t,