parent
9f6496d38a
commit
be3a0b6b10
|
@ -1,8 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Error: Must provide name of the project to build"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./../../../sdk/bpf/rust-utils/build.sh "$PWD"/"$1"
|
||||
# Build all projects
|
||||
for project in */ ; do
|
||||
./../../../sdk/bpf/rust-utils/build.sh "$PWD/$project"
|
||||
done
|
||||
else
|
||||
# Build requested project
|
||||
./../../../sdk/bpf/rust-utils/build.sh "$PWD/$1"
|
||||
|
||||
fi
|
|
@ -1,8 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Error: Must provide the full path to the project to clean"
|
||||
exit 1
|
||||
# Clean all projects
|
||||
for project in */ ; do
|
||||
./../../../sdk/bpf/rust-utils/clean.sh "$PWD/$project"
|
||||
done
|
||||
else
|
||||
# Clean requested project
|
||||
./../../../sdk/bpf/rust-utils/clean.sh "$PWD/$1"
|
||||
|
||||
fi
|
||||
|
||||
./../../../sdk/bpf/rust-utils/clean.sh "$PWD"/"$1"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Error: Must provide the full path to the project to dump"
|
||||
echo "Error: Must provide the name of the project to dump"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -14,8 +14,8 @@ cp ./target/dump.txt ./targetdump-last.txt 2>/dev/null
|
|||
|
||||
set -ex
|
||||
|
||||
ls -la ./target/bpfel-unknown-unknown/release/solana_bpf_rust_"$1".so > ./target/dump_mangled.txt
|
||||
greadelf -aW ./target/bpfel-unknown-unknown/release/solana_bpf_rust_"$1".so >> ./target/dump_mangled.txt
|
||||
llvm-objdump -print-imm-hex --source --disassemble ./target/bpfel-unknown-unknown/release/solana_bpf_rust_"$1".so >> ./target/dump_mangled.txt
|
||||
ls -la ./target/bpfel-unknown-unknown/release/solana_bpf_rust_"${1%/}".so > ./target/dump_mangled.txt
|
||||
greadelf -aW ./target/bpfel-unknown-unknown/release/solana_bpf_rust_"${1%/}".so >> ./target/dump_mangled.txt
|
||||
llvm-objdump -print-imm-hex --source --disassemble ./target/bpfel-unknown-unknown/release/solana_bpf_rust_"${1%/}".so >> ./target/dump_mangled.txt
|
||||
sed s/://g < ./target/dump_mangled.txt | rustfilt > ./target/dump.txt
|
||||
|
||||
|
|
Loading…
Reference in New Issue