summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-04-06 13:56:15 +0200
committerAraq <rumpf_a@web.de>2018-04-06 13:56:15 +0200
commit19ed4a8e3e40ae01e96ac5884fedfcce41aaf4b1 (patch)
treeab86035d08813610cf9ddce36761904fab7c41ee
parentaa6353e4fa2115010f6217c99dfd140a3421dde0 (diff)
downloadNim-19ed4a8e3e40ae01e96ac5884fedfcce41aaf4b1.tar.gz
fixes #7522
-rw-r--r--compiler/nimeval.nim1
-rw-r--r--compiler/nimfix/pretty.nim4
-rw-r--r--compiler/nimfix/prettybase.nim2
-rw-r--r--compiler/plugins/active.nim2
-rw-r--r--compiler/plugins/itersgen.nim7
-rw-r--r--compiler/plugins/locals/locals.nim4
6 files changed, 10 insertions, 10 deletions
diff --git a/compiler/nimeval.nim b/compiler/nimeval.nim
index aca03fc16..ff91861d0 100644
--- a/compiler/nimeval.nim
+++ b/compiler/nimeval.nim
@@ -20,6 +20,7 @@ proc execute*(program: string) =
 
   initDefines()
   defineSymbol("nimrodvm")
+  defineSymbol("nimscript")
   when hasFFI: defineSymbol("nimffi")
   registerPass(verbosePass)
   registerPass(semPass)
diff --git a/compiler/nimfix/pretty.nim b/compiler/nimfix/pretty.nim
index 8ba922927..55603f4cd 100644
--- a/compiler/nimfix/pretty.nim
+++ b/compiler/nimfix/pretty.nim
@@ -13,8 +13,8 @@
 import
   strutils, os, intsets, strtabs
 
-import compiler/options, compiler/ast, compiler/astalgo, compiler/msgs,
-  compiler/semdata, compiler/nimfix/prettybase, compiler/ropes, compiler/idents
+import "../compiler" / [options, ast, astalgo, msgs, semdata, ropes, idents]
+import prettybase
 
 type
   StyleCheck* {.pure.} = enum None, Warn, Auto
diff --git a/compiler/nimfix/prettybase.nim b/compiler/nimfix/prettybase.nim
index 0f17cbcb1..f1d24183b 100644
--- a/compiler/nimfix/prettybase.nim
+++ b/compiler/nimfix/prettybase.nim
@@ -8,7 +8,7 @@
 #
 
 import strutils, lexbase, streams
-import compiler/ast, compiler/msgs, compiler/idents
+import "../compiler" / [ast, msgs, idents]
 from os import splitFile
 
 type
diff --git a/compiler/plugins/active.nim b/compiler/plugins/active.nim
index 7b6411178..5da623e49 100644
--- a/compiler/plugins/active.nim
+++ b/compiler/plugins/active.nim
@@ -10,4 +10,4 @@
 ## Include file that imports all plugins that are active.
 
 import
-  locals.locals, itersgen
+  locals / locals, itersgen
diff --git a/compiler/plugins/itersgen.nim b/compiler/plugins/itersgen.nim
index f44735b77..dbc47e11e 100644
--- a/compiler/plugins/itersgen.nim
+++ b/compiler/plugins/itersgen.nim
@@ -9,10 +9,9 @@
 
 ## Plugin to transform an inline iterator into a data structure.
 
-import compiler/pluginsupport, compiler/ast, compiler/astalgo,
-  compiler/magicsys, compiler/lookups, compiler/semdata,
-  compiler/lambdalifting, compiler/rodread, compiler/msgs
-
+import ".." / [pluginsupport, ast, astalgo,
+  magicsys, lookups, semdata,
+  lambdalifting, rodread, msgs]
 
 proc iterToProcImpl(c: PContext, n: PNode): PNode =
   result = newNodeI(nkStmtList, n.info)
diff --git a/compiler/plugins/locals/locals.nim b/compiler/plugins/locals/locals.nim
index 338e7bcac..9cbb61186 100644
--- a/compiler/plugins/locals/locals.nim
+++ b/compiler/plugins/locals/locals.nim
@@ -9,8 +9,8 @@
 
 ## The builtin 'system.locals' implemented as a plugin.
 
-import compiler/pluginsupport, compiler/ast, compiler/astalgo,
-  compiler/magicsys, compiler/lookups, compiler/semdata, compiler/lowerings
+import "../../"  / [pluginsupport, ast, astalgo,
+  magicsys, lookups, semdata, lowerings]
 
 proc semLocals(c: PContext, n: PNode): PNode =
   var counter = 0