aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-12-18 23:49:25 -0600
committerGanesh Viswanathan <dev@genotrance.com>2019-12-18 23:49:25 -0600
commitbce8e0907368df20e04252635ab5994cfd579b7b (patch)
tree4626b23c8515566541aff752140aa41b6b9d68ee /tests
parent0db54af54f17c1e62dff4baa44ea40e6d14c676e (diff)
downloadnimterop-bce8e0907368df20e04252635ab5994cfd579b7b.tar.gz
nimterop-bce8e0907368df20e04252635ab5994cfd579b7b.zip
Fix #146 - prefix/suffix for stripping
Diffstat (limited to 'tests')
-rw-r--r--tests/lzma.nim11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/lzma.nim b/tests/lzma.nim
index 785e0bb..b207a46 100644
--- a/tests/lzma.nim
+++ b/tests/lzma.nim
@@ -4,6 +4,7 @@ import nimterop/[build, cimport]
const
baseDir = getProjectCacheDir("nimterop" / "tests" / "liblzma")
+ flags = "--prefix=__,_"
static:
cDebug()
@@ -21,12 +22,6 @@ getHeader(
conFlags = "--disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo"
)
-cPlugin:
- import strutils
-
- proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
- sym.name = sym.name.strip(chars = {'_'})
-
cOverride:
type
lzma_internal = object
@@ -39,8 +34,8 @@ cOverride:
lzma_index_iter = object
when not lzmaStatic:
- cImport(lzmaPath, recurse = true, dynlib = "lzmaLPath")
+ cImport(lzmaPath, recurse = true, dynlib = "lzmaLPath", flags = flags)
else:
- cImport(lzmaPath, recurse = true)
+ cImport(lzmaPath, recurse = true, flags = flags)
echo "liblzma version = " & $lzma_version_string()