Skip to content

Commit

Permalink
Fix perf-libs version detection (#10571)
Browse files Browse the repository at this point in the history
automerge
  • Loading branch information
mvines authored Jun 14, 2020
1 parent 8ac6b7a commit 0d38257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fetch-perf-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VERSION=$PERF_LIBS_VERSION-1
set -e
cd "$(dirname "$0")"

if [[ ! -f target/perf-libs/.$VERSION ]]; then
if [[ $VERSION != "$(cat target/perf-libs/.version 2> /dev/null)" ]]; then
if [[ $(uname) != Linux ]]; then
echo Note: Performance libraries are only available for Linux
exit 0
Expand All @@ -17,6 +17,7 @@ if [[ ! -f target/perf-libs/.$VERSION ]]; then
exit 0
fi

rm -rf target/perf-libs
mkdir -p target/perf-libs
(
set -x
Expand All @@ -35,7 +36,7 @@ if [[ ! -f target/perf-libs/.$VERSION ]]; then
mkdir -p ~/.cache
mv solana-perf.tgz ~/.cache/solana-perf-$PERF_LIBS_VERSION.tgz
fi
touch .$VERSION
echo "$VERSION" > .version
)

# Setup symlinks so the perf-libs/ can be found from all binaries run out of
Expand Down

0 comments on commit 0d38257

Please sign in to comment.