fixes the regression #12860 caused; hotfix
This commit is contained in:
parent
cf3e0008b9
commit
3d2459bdc0
2 changed files with 4 additions and 1 deletions
|
|
@ -3119,7 +3119,7 @@ template rawToFormalFileInfo(rawInfo, path, formalInfo): untyped =
|
||||||
assert(path != "") # symlinks can't occur for file handles
|
assert(path != "") # symlinks can't occur for file handles
|
||||||
formalInfo.kind = getSymlinkFileKind(path)
|
formalInfo.kind = getSymlinkFileKind(path)
|
||||||
|
|
||||||
when defined(js):
|
when defined(js) or defined(nimscript):
|
||||||
when not declared(FileHandle):
|
when not declared(FileHandle):
|
||||||
type FileHandle = distinct int32
|
type FileHandle = distinct int32
|
||||||
when not declared(File):
|
when not declared(File):
|
||||||
|
|
|
||||||
|
|
@ -272,6 +272,9 @@ proc selfExec*(command: string) {.
|
||||||
raise newException(OSError, "FAILED: " & c)
|
raise newException(OSError, "FAILED: " & c)
|
||||||
checkOsError()
|
checkOsError()
|
||||||
|
|
||||||
|
from os import paramCount, paramStr
|
||||||
|
export paramCount, paramStr
|
||||||
|
|
||||||
proc put*(key, value: string) =
|
proc put*(key, value: string) =
|
||||||
## Sets a configuration 'key' like 'gcc.options.always' to its value.
|
## Sets a configuration 'key' like 'gcc.options.always' to its value.
|
||||||
builtin
|
builtin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue