summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-04 09:04:14 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-04 09:04:14 +0100
commit1d1be03d81a380d6d2e15bd1e4a0873fe64ada5f (patch)
tree2d2c8676ae47069e13c57d90540a8462159abc1b /lib
parentf9231eb56901e7b72b41d26eebb390d048b4b296 (diff)
downloadNim-1d1be03d81a380d6d2e15bd1e4a0873fe64ada5f.tar.gz
make 'doc io.nim' work
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim5
-rw-r--r--lib/system/io.nim.cfg1
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 1d3be3075..b1ac043be 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -4264,8 +4264,9 @@ proc `$`*(t: typedesc): string {.magic: "TypeTrait".} =
 import system/widestrs
 export widestrs
 
-import system/io
-export io
+when not defined(nimnoio):
+  import system/io
+  export io
 
 when not defined(createNimHcr):
   include nimhcr
diff --git a/lib/system/io.nim.cfg b/lib/system/io.nim.cfg
new file mode 100644
index 000000000..fd7cc755c
--- /dev/null
+++ b/lib/system/io.nim.cfg
@@ -0,0 +1 @@
+--define: nimnoio