summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-18 15:18:00 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-18 15:18:00 +0200
commita4e2b0c1538134ebf105b669da13db13b5356998 (patch)
tree66f0d4c5a827082aad44b9048fe43f1a4875b1de /compiler/main.nim
parentb2c7910fb60528520d71686ac7c80a30553f9320 (diff)
downloadNim-a4e2b0c1538134ebf105b669da13db13b5356998.tar.gz
platform.nim doesn't use globals anymore; prepare msgs.nim for not using globals
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index b41cdc8d6..7e0ac102c 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -91,7 +91,7 @@ proc commandJsonScript(graph: ModuleGraph; cache: IdentCache) =
 
 proc commandCompileToJS(graph: ModuleGraph; cache: IdentCache) =
   #incl(gGlobalOptions, optSafeCode)
-  setTarget(osJS, cpuJS)
+  setTarget(graph.config.target, osJS, cpuJS)
   #initDefines()
   defineSymbol(graph.config.symbols, "ecmascript") # For backward compatibility
   defineSymbol(graph.config.symbols, "js")