diff options
author | flywind <xzsflywind@gmail.com> | 2022-02-03 00:10:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 17:10:11 +0100 |
commit | 891329cd4b3e7e3b0d995cf342c1018239ebcf81 (patch) | |
tree | 491e25ac424b4a73eadeb59212461b915c4db6c8 /compiler | |
parent | 486cb09ec2caef60011b3d182bfd188dadafdf62 (diff) | |
download | Nim-891329cd4b3e7e3b0d995cf342c1018239ebcf81.tar.gz |
move io out of system (#19442)
* move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/pathutils.nim | 3 | ||||
-rw-r--r-- | compiler/vmops.nim | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/compiler/pathutils.nim b/compiler/pathutils.nim index d8f3613b0..8138a245a 100644 --- a/compiler/pathutils.nim +++ b/compiler/pathutils.nim @@ -12,6 +12,9 @@ import os, pathnorm +when defined(nimSlimSystem): + import std/syncio + type AbsoluteFile* = distinct string AbsoluteDir* = distinct string diff --git a/compiler/vmops.nim b/compiler/vmops.nim index 018e7b9c6..6b06cc68d 100644 --- a/compiler/vmops.nim +++ b/compiler/vmops.nim @@ -47,7 +47,7 @@ template systemop(op) {.dirty.} = registerCallback(c, "stdlib.system." & astToStr(op), `op Wrapper`) template ioop(op) {.dirty.} = - registerCallback(c, "stdlib.io." & astToStr(op), `op Wrapper`) + registerCallback(c, "stdlib.syncio." & astToStr(op), `op Wrapper`) template macrosop(op) {.dirty.} = registerCallback(c, "stdlib.macros." & astToStr(op), `op Wrapper`) |