mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-30 11:53:11 +03:00
699d8ca329
closes #331
27 lines
549 B
Bash
Executable File
Vendored
27 lines
549 B
Bash
Executable File
Vendored
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
if [ "$TRAVIS_OS_NAME" != linux ]; then
|
|
exit 0
|
|
fi
|
|
|
|
sudo apt-get update
|
|
|
|
# needed to build deb packages
|
|
sudo apt-get install -y fakeroot
|
|
|
|
# needed for i686 linux gnu target
|
|
if [[ $TARGET == i686-unknown-linux-* ]]; then
|
|
sudo apt-get install -y gcc-multilib
|
|
fi
|
|
|
|
# needed for cross-compiling for arm
|
|
if [[ $TARGET == arm-unknown-linux-* ]]; then
|
|
sudo apt-get install -y \
|
|
gcc-4.8-arm-linux-gnueabihf \
|
|
binutils-arm-linux-gnueabihf \
|
|
libc6-armhf-cross \
|
|
libc6-dev-armhf-cross
|
|
fi
|