Skip to content

Commit

Permalink
fixes the regression nim-lang#12860 caused; hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Apr 30, 2020
1 parent cf3e000 commit 3d2459b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions 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 @@ -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):
Expand Down
3 changes: 3 additions & 0 deletions lib/system/nimscript.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d2459b

Please sign in to comment.