Skip to content

Commit

Permalink
Use DYLD_LIBRARY_PATH on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhartnett committed Jul 2, 2024
1 parent ad63ed6 commit 62a0577
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rocksdb.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ task clean, "Remove temporary files":
exec "make -C vendor/rocksdb clean"

task test, "Run tests":
let runTests = "nim c -r --threads:on tests/test_all.nim"
when defined(linux):
exec "export LD_LIBRARY_PATH=build; " & runTests
when defined(macosx):
exec "export DYLD_LIBRARY_PATH=build; " & runTests
when defined(windows):
exec "nim c -r --threads:on tests/test_all.nim"
else:
exec "export LD_LIBRARY_PATH=build; nim c -r --threads:on tests/test_all.nim"
exec runTests

task test_static, "Run tests after static linking dependencies":
when defined(windows):
Expand Down

0 comments on commit 62a0577

Please sign in to comment.