Skip to content

Commit

Permalink
allow setting of hwloc library
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Nov 21, 2024
1 parent db028fa commit b46d18c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hwloc/capi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
##

when hostOs == "macosx":
{.pragma: hwloc, dynlib:"libhwloc.dylib".}
const hwloclib {.strDefine.} = "libhwloc.dylib"
else:
{.pragma: hwloc, dynlib:"libhwloc.so".}
const hwloclib {.strDefine.} = "libhwloc.so"
{.pragma: hwloc, dynlib:hwloclib.}

type
hwloc_bitmap_s {.bycopy.} = object
Expand Down

0 comments on commit b46d18c

Please sign in to comment.