Skip to content

Commit

Permalink
Remove solang from the tools suite (solana-labs#2010)
Browse files Browse the repository at this point in the history
Solang no longer works with Anchor cli 0.30.0.
  • Loading branch information
seanyoung authored Jul 9, 2024
1 parent 8cb4e00 commit 0a05418
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions scripts/cargo-install-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,40 +179,6 @@ if [[ -z "$validatorOnly" ]]; then
cp -a sdk/sbf/* "$installDir"/bin/sdk/sbf
fi

# Add Solidity Compiler
if [[ -z "$validatorOnly" ]]; then
base="https://github.com/hyperledger/solang/releases/download"
version="v0.3.3"
curlopt="-sSfL --retry 5 --retry-delay 2 --retry-connrefused"

case $(uname -s) in
"Linux")
if [[ $(uname -m) == "x86_64" ]]; then
arch="x86-64"
else
arch="arm64"
fi
# shellcheck disable=SC2086
curl $curlopt -o "$installDir/bin/solang" $base/$version/solang-linux-$arch
chmod 755 "$installDir/bin/solang"
;;
"Darwin")
if [[ $(uname -m) == "x86_64" ]]; then
arch="intel"
else
arch="arm"
fi
# shellcheck disable=SC2086
curl $curlopt -o "$installDir/bin/solang" $base/$version/solang-mac-$arch
chmod 755 "$installDir/bin/solang"
;;
*)
# shellcheck disable=SC2086
curl $curlopt -o "$installDir/bin/solang.exe" $base/$version/solang.exe
;;
esac
fi

(
set -x
# deps dir can be empty
Expand Down

0 comments on commit 0a05418

Please sign in to comment.