mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
23 lines
602 B
Nim
23 lines
602 B
Nim
|
|
import std/os
|
|
|
|
const
|
|
currentDir = currentSourcePath().parentDir()
|
|
lib_path* = currentDir/"target"/"release"/"libcodex_storage_proofs.a"
|
|
|
|
static:
|
|
echo "\n==== CODEX:STORAGE:PROOFS: "
|
|
echo "cwd: ", currentDir
|
|
echo "lib_path: ", lib_path
|
|
# echo "pwd: ", projectDir()
|
|
# echo "cwd: ", getCurrentDir()
|
|
let cmd = "pwd && cargo build --release"
|
|
echo "\nBuilding codex-storage-proofs: " & cmd
|
|
let (output, exitCode) = gorgeEx cmd
|
|
echo output
|
|
if exitCode != 0:
|
|
# discard gorge "rm -rf " & buildDir
|
|
raise (ref Defect)(msg: "Failed to build codex-storage-proofs")
|
|
|
|
echo "\n===="
|