summary refs log tree commit diff stats
path: root/compiler/importer.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-13 17:52:21 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-13 17:52:21 +0200
commit328e7a100560e5bd179512ba142ef944bf0a0698 (patch)
tree2403385aa6fc3461a810ca34222af8e3794b79cf /compiler/importer.nim
parent297038f70424e2d777cf7c308a9ab48cb6f66d01 (diff)
downloadNim-328e7a100560e5bd179512ba142ef944bf0a0698.tar.gz
options.nim: no global variables anymore
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r--compiler/importer.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim
index 4e3aa8d10..ed988cea7 100644
--- a/compiler/importer.nim
+++ b/compiler/importer.nim
@@ -122,7 +122,8 @@ proc importModuleAs(c: PContext; n: PNode, realModule: PSym): PSym =
     localError(c.config, n.info, "module alias must be an identifier")
   elif n.sons[1].ident.id != realModule.name.id:
     # some misguided guy will write 'import abc.foo as foo' ...
-    result = createModuleAlias(realModule, n.sons[1].ident, realModule.info)
+    result = createModuleAlias(realModule, n.sons[1].ident, realModule.info,
+                               c.config.options)
 
 proc myImportModule(c: PContext, n: PNode): PSym =
   var f = checkModuleName(c.config, n)