Skip to content

Commit

Permalink
Define librocksdb dynlib on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhartnett committed Jan 14, 2025
1 parent a14fd96 commit 9dac0fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rocksdb/lib/librocksdb.nim
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type
## DB operations

when defined(windows):
const librocksdb = "librocksdb.dll"
{.pragma: importrocks, importc, cdecl, dynlib: librocksdb.}
else:
{.pragma: importrocks, importc, cdecl.}
Expand All @@ -108,7 +109,7 @@ else:
# {.passl: "-lshlwapi -lrpcrt4".}

if defined(windows):
{.push importc, dynlib: "librocksdb.so".}
{.push importc, dynlib: librocksdb.}

# Do I need importc for static lib?
include ./rocksdb_gen.nim

0 comments on commit 9dac0fd

Please sign in to comment.