From 074387fe494158d3202847817efebea5862e18cc Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Mon, 20 Oct 2025 14:26:29 +1100 Subject: [PATCH] ensure build dir for RLN exists --- examples/nimble/example.nimble | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/nimble/example.nimble b/examples/nimble/example.nimble index d807eb79a..3a28c25fd 100644 --- a/examples/nimble/example.nimble +++ b/examples/nimble/example.nimble @@ -21,6 +21,11 @@ proc ensureRln(libFile: string = "build/librln.a", version = "v0.8.0") = echo "Building RLN library..." let buildDir = parentDir(parentDir(getCurrentDir())) & "/vendor/zerokit" let outFile = libFile + + let outDir = parentDir(outFile) + if not dirExists(outDir): + mkDir(outDir) # Ensure build directory exists + exec "bash ../../scripts/build_rln.sh " & buildDir & " " & version & " " & outFile else: echo "RLN library already exists: " & libFile