chore: more fix

This commit is contained in:
kaichaosun 2025-09-05 18:14:38 +08:00
parent 8ca15bdd70
commit a9bb16cfe5
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ then
tar -xzf "${tarball}" -C "$tmpdir"
mv "$tmpdir/release/librln.a" "${output_filename}"
rm -rf "${tarball}" "$tmpdir"
echo "finished building ${output_filename}"
else
echo "Failed to download ${tarball}"
# Build rln instead

View File

@ -64,7 +64,7 @@ proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
mkDir "build"
ensureRln()
exec "nim " & lang & " --out:build/" & name & " --mm:refc " & " --passL:build/librln.a " & params & " " &
exec "nim " & lang & " --out:build/" & name & " --mm:refc " & " --passL:build/librln.a --passL:-L" & getCurrentDir() & " " & params & " " &
srcDir & name & ".nim"
proc buildLibrary(name: string, srcDir = "./", params = "", `type` = "static") =