diff options
author | Araq <rumpf_a@web.de> | 2020-04-30 20:23:42 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-04-30 20:23:53 +0200 |
commit | 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5 (patch) | |
tree | 723fd29bdbda918082cfd77f0cc1b28104c9b444 /lib | |
parent | cf3e0008b9725b5cc0b51b2605bc8ecb36fa449e (diff) | |
download | Nim-3d2459bdc0b6d6236a2cd9209ed81c965ee411a5.tar.gz |
fixes the regression #12860 caused; hotfix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/os.nim | 2 | ||||
-rw-r--r-- | lib/system/nimscript.nim | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index da84df791..b46205419 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -3119,7 +3119,7 @@ template rawToFormalFileInfo(rawInfo, path, formalInfo): untyped = assert(path != "") # symlinks can't occur for file handles formalInfo.kind = getSymlinkFileKind(path) -when defined(js): +when defined(js) or defined(nimscript): when not declared(FileHandle): type FileHandle = distinct int32 when not declared(File): diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index e0c400f05..5b8622182 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -272,6 +272,9 @@ proc selfExec*(command: string) {. raise newException(OSError, "FAILED: " & c) checkOsError() +from os import paramCount, paramStr +export paramCount, paramStr + proc put*(key, value: string) = ## Sets a configuration 'key' like 'gcc.options.always' to its value. builtin |