Skip to content

Commit

Permalink
replace ./cargo with cargo in sbf/bpf build scripts (solana-labs#29371)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill lykov authored Dec 22, 2022
1 parent d331291 commit 49f4e2a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cargo-build-bpf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ done

set -ex
if [[ ! -f "$here"/sdk/bpf/syscalls.txt ]]; then
"$here"/cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
fi
if [[ ! -f "$here"/target/debug/cargo-build-sbf ]]; then
"$here"/cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
fi
exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-build-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"
exec cargo run --manifest-path "$here"/sdk/cargo-build-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"
4 changes: 2 additions & 2 deletions cargo-build-sbf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ done

set -ex
if [[ ! -f "$here"/sdk/sbf/syscalls.txt ]]; then
"$here"/cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
fi
exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"
exec cargo run --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"
6 changes: 3 additions & 3 deletions cargo-test-bpf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ done
export CARGO_BUILD_BPF="$here"/cargo-build-bpf
set -x
if [[ ! -f "$here"/target/debug/cargo-build-sbf ]]; then
"$here"/cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
fi
if [[ ! -f "$here"/target/debug/cargo-test-sbf ]]; then
"$here"/cargo build --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml
cargo build --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml
fi
exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-test-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"
exec cargo run --manifest-path "$here"/sdk/cargo-test-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"
2 changes: 1 addition & 1 deletion cargo-test-sbf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ done

export CARGO_BUILD_SBF="$here"/cargo-build-sbf
set -x
exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"
exec cargo run --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"

0 comments on commit 49f4e2a

Please sign in to comment.