From 63188ae1a4de9837136fcf146ddb7f44744167fa Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Fri, 22 Dec 2023 18:45:26 -0700 Subject: [PATCH] update build setup --- codex_storage_proofs.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex_storage_proofs.nim b/codex_storage_proofs.nim index 11800be..623aed3 100644 --- a/codex_storage_proofs.nim +++ b/codex_storage_proofs.nim @@ -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.}