ensure build dir for RLN exists

This commit is contained in:
fryorcraken 2025-10-20 14:26:29 +11:00
parent 611b92f4eb
commit 074387fe49
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -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