mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
update build setup
This commit is contained in:
parent
44d8e3a22c
commit
7b28dd8265
@ -8,6 +8,7 @@ opt-level = 3
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
strip = true
|
strip = true
|
||||||
|
opt-level = 2
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = [
|
crate-type = [
|
||||||
|
|||||||
@ -1,22 +1,19 @@
|
|||||||
|
|
||||||
import std/os
|
import std/os
|
||||||
|
import std/strutils
|
||||||
|
import std/sha1
|
||||||
|
import std/macros
|
||||||
|
|
||||||
const
|
const
|
||||||
currentDir = currentSourcePath().parentDir()
|
currentDir = currentSourcePath().parentDir()
|
||||||
lib_path* = currentDir/"target"/"release"/"libcodex_storage_proofs.a"
|
libPath* = currentDir/"target"/"release"/"libcodex_storage_proofs.a"
|
||||||
|
|
||||||
static:
|
static:
|
||||||
echo "\n==== CODEX:STORAGE:PROOFS: "
|
let cmd = "cargo build --release"
|
||||||
echo "cwd: ", currentDir
|
hint "\nBuilding codex-storage-proofs: " & cmd
|
||||||
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
|
let (output, exitCode) = gorgeEx cmd
|
||||||
echo output
|
for ln in output.splitLines():
|
||||||
|
hint("cargo> " & ln)
|
||||||
if exitCode != 0:
|
if exitCode != 0:
|
||||||
# discard gorge "rm -rf " & buildDir
|
|
||||||
raise (ref Defect)(msg: "Failed to build codex-storage-proofs")
|
raise (ref Defect)(msg: "Failed to build codex-storage-proofs")
|
||||||
|
|
||||||
echo "\n===="
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user