summary refs log tree commit diff stats
path: root/koch.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 /koch.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 'koch.nim')
-rw-r--r--koch.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim
index b776927ae..a6c2443ce 100644
--- a/koch.nim
+++ b/koch.nim
@@ -463,11 +463,18 @@ proc runCI(cmd: string) =
   # as that would weaken our testing efforts.
   when defined(posix): # appveyor (on windows) didn't run this
     kochExecFold("Boot", "boot")
+  # boot without -d:nimHasLibFFI to make sure this still works
   kochExecFold("Boot in release mode", "boot -d:release")
 
   ## build nimble early on to enable remainder to depend on it if needed
   kochExecFold("Build Nimble", "nimble")
 
+  when not defined(windows):
+    # pending https://github.com/Araq/libffi/pull/2
+    # also, that PR works on win32 but not yet win64
+    execFold("nimble install -y libffi", "nimble install -y libffi")
+    kochExecFold("boot -d:release -d:nimHasLibFFI", "boot -d:release -d:nimHasLibFFI")
+
   if getEnv("NIM_TEST_PACKAGES", "false") == "true":
     execFold("Test selected Nimble packages", "nim c -r testament/tester cat nimble-extra")
   else: