update build setup

This commit is contained in:
Jaremy Creechley 2023-12-22 18:45:26 -07:00
parent 19ed539d3e
commit 63188ae1a4
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,8 @@ import std/macros
const
currentDir = currentSourcePath().parentDir()
libPath* = currentDir/"target"/"release"/"libcodex_storage_proofs.a"
libDir* = currentDir/"target"/"release"
libPath* = libDir/"libcodex_storage_proofs.a"
static:
let cmd = "cargo build --release"
@ -17,3 +18,5 @@ static:
if exitCode != 0:
raise (ref Defect)(msg: "Failed to build codex-storage-proofs")
{.passl: "-lcodex_storage_proofs" & " -L" & libDir.}