fix for windows for CT FFI
This commit is contained in:
parent
6ee2eec9ad
commit
72d5fc86b6
3 changed files with 12 additions and 7 deletions
|
|
@ -10,8 +10,14 @@
|
|||
{.deadCodeElim: on.}
|
||||
|
||||
when defined(windows):
|
||||
import os
|
||||
# on Windows we don't use a DLL but instead embed libffi directly:
|
||||
{.pragma: mylib, header: r"ffi.h".}
|
||||
|
||||
const thisPath = currentSourcePath.parentDir
|
||||
const flag = "-I" & (thisPath / "common") & " -I" & thisPath
|
||||
{.passC: flag.}
|
||||
|
||||
{.pragma: mylib, header: r"common/ffi.h".}
|
||||
|
||||
#{.compile: r"common\malloc_closure.c".}
|
||||
{.compile: r"common\raw_api.c".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue