Remove legacy backend

This commit is contained in:
Ganesh Viswanathan 2020-06-24 10:37:38 -05:00
commit d126e9944f
17 changed files with 33 additions and 1295 deletions

View file

@ -14,7 +14,7 @@ proc testCall(cmd, output: string, exitCode: int, delete = true) =
doAssert outp.contains(output), outp
var
cmd = "nim c -f --hints:off -d:FLAGS=\"-f:ast2\" -d:checkAbi"
cmd = "nim c -f --hints:off -d:checkAbi"
lrcmd = " -r lzma.nim"
zrcmd = " -r zlib.nim"
sshcmd = " -r libssh2.nim"

View file

@ -17,12 +17,12 @@ cOverride:
SOCKET = object
when not libssh2Static:
cImport(libssh2Path, recurse = true, dynlib = "libssh2LPath", flags = "-f:ast2 -c -E_ -F_")
cImport(libssh2Path, recurse = true, dynlib = "libssh2LPath", flags = "-c -E_ -F_")
when not defined(Windows) and not isDefined(libssh2JBB):
proc zlibVersion(): cstring {.importc, dynlib: libssh2LPath.}
else:
cImport(libssh2Path, recurse = true, flags = "-f:ast2 -c -E_ -F_")
cImport(libssh2Path, recurse = true, flags = "-c -E_ -F_")
when not defined(Windows) and not isDefined(libssh2JBB):
proc zlibVersion(): cstring {.importc.}

View file

@ -39,7 +39,7 @@ cOverride:
cImport(@[
basePath / "rsa.h",
basePath / "err.h",
], recurse = true, flags = "-f:ast2 -s -c " & FLAGS)
], recurse = true, flags = "-s -c " & FLAGS)
{.passL: cryptoLPath.}