Skip to content

Instantly share code, notes, and snippets.

@malbarbo
Created April 12, 2017 00:27
Show Gist options
  • Save malbarbo/44e4194434ac3bfe9c1f0e618f6099f0 to your computer and use it in GitHub Desktop.
Save malbarbo/44e4194434ac3bfe9c1f0e618f6099f0 to your computer and use it in GitHub Desktop.
#!/bin/bash
archs=(
aarch64-linux-android
aarch64-unknown-linux-gnu
arm-linux-androideabi
arm-unknown-linux-gnueabi
arm-unknown-linux-gnueabihf
armv7-linux-androideabi
armv7-unknown-linux-gnueabihf
i686-linux-android
i686-unknown-linux-gnu
x86_64-unknown-freebsd
x86_64-unknown-linux-gnu
x86_64-unknown-netbsd
)
t=$(mktemp -d)
cd $t
for arch in ${archs[@]}; do
rm -f rustup-init
curl -Os https://static.rust-lang.org/rustup/dist/$arch/rustup-init
out=$(nm rustup-init | grep Curl_ssl_version)
if [ -z "$out" ]; then
echo $arch: Broken
else
echo $arch: Ok
fi
done
cd ../ && rm -rf $t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment