Install move-loader binaries (#7768)

This commit is contained in:
Jack May 2020-01-13 12:53:53 -08:00 committed by GitHub
parent 8f7ded33e0
commit 5cb23c814d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -49,6 +49,7 @@ if [[ -z "$installDir" ]]; then
fi
installDir="$(mkdir -p "$installDir"; cd "$installDir"; pwd)"
mkdir -p "$installDir/bin/deps"
cargo=cargo
echo "Install location: $installDir ($buildVariant)"
@ -64,8 +65,10 @@ SECONDS=0
$cargo $maybeRustVersion build $maybeReleaseFlag
if $useMove; then
moveLoaderDir=programs/move_loader
# shellcheck disable=SC2086 # Don't want to double quote $rust_version
$cargo $maybeRustVersion build $maybeReleaseFlag --manifest-path programs/move_loader/Cargo.toml
$cargo $maybeRustVersion build $maybeReleaseFlag --manifest-path "$moveLoaderDir/Cargo.toml"
cp -fv $moveLoaderDir/target/$buildVariant/libsolana_move_loader_program.* "$installDir/bin/deps"
fi
)
@ -112,7 +115,6 @@ if [[ -d target/perf-libs ]]; then
fi
set -x
mkdir -p "$installDir/bin/deps"
cp -fv target/$buildVariant/deps/libsolana*program.* "$installDir/bin/deps"
echo "Done after $SECONDS seconds"