summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2019-02-23 02:31:01 -0800
committerAndreas Rumpf <rumpf_a@web.de>2019-02-23 11:31:01 +0100
commitadbabf145c109d7014f55227c429a933266dc2dd (patch)
tree7f384ae4f7aee5ce66a439af1f3130fdbc4e0da2 /compiler/main.nim
parent30ab7e6bdd779b6ef6c9a21507b6cf18f56024a3 (diff)
downloadNim-adbabf145c109d7014f55227c429a933266dc2dd.tar.gz
FFI at CT (#10150)
* enable FFI at CT
* rename useFFI=>nimHasLibFFI; improve formatting rawExecute traceCode
* disable libffi on windows (works for win32, not yet win64)
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 49c2666ea..c1477a22b 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -107,6 +107,7 @@ when not defined(leanCompiler):
 proc interactivePasses(graph: ModuleGraph) =
   initDefines(graph.config.symbols)
   defineSymbol(graph.config.symbols, "nimscript")
+  # note: seems redundant with -d:nimHasLibFFI
   when hasFFI: defineSymbol(graph.config.symbols, "nimffi")
   registerPass(graph, verbosePass)
   registerPass(graph, semPass)