Skip to content

Commit 074387f

Browse files
committed
ensure build dir for RLN exists
1 parent 611b92f commit 074387f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/nimble/example.nimble

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ proc ensureRln(libFile: string = "build/librln.a", version = "v0.8.0") =
2121
echo "Building RLN library..."
2222
let buildDir = parentDir(parentDir(getCurrentDir())) & "/vendor/zerokit"
2323
let outFile = libFile
24+
25+
let outDir = parentDir(outFile)
26+
if not dirExists(outDir):
27+
mkDir(outDir) # Ensure build directory exists
28+
2429
exec "bash ../../scripts/build_rln.sh " & buildDir & " " & version & " " & outFile
2530
else:
2631
echo "RLN library already exists: " & libFile

0 commit comments

Comments
 (0)