summaryrefslogtreecommitdiffstats
path: root/compile-all-targets.sh
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-03-20 11:05:56 +0100
committerCanop <cano.petrole@gmail.com>2022-03-20 11:05:56 +0100
commit2feccf9923eedafd64abcf48a59d277ce98fbda8 (patch)
tree740a795c1a50ebc731a70e38f50c57d56ee825a0 /compile-all-targets.sh
parent088f19fc2543b51432ec3a60f6558e93ea0cce7b (diff)
downgrade rust to 1.58 : cargo cross fails on 1.59
Diffstat (limited to 'compile-all-targets.sh')
-rwxr-xr-xcompile-all-targets.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/compile-all-targets.sh b/compile-all-targets.sh
index b67ac94..8436daa 100755
--- a/compile-all-targets.sh
+++ b/compile-all-targets.sh
@@ -21,6 +21,7 @@ echo " build cleaned"
# build the linux version
echo -e "${H2}Compiling the linux version${EH}"
cargo build --release --features "clipboard"
+strip target/release/broot
mkdir build/x86_64-linux/
cp target/release/broot build/x86_64-linux/
@@ -46,26 +47,26 @@ echo " Done"
# build the windows version
# use cargo cross
echo -e "${H2}Compiling the Windows version${EH}"
-cross build --target x86_64-pc-windows-gnu --release --features "clipboard"
+cross build +1.58 --target x86_64-pc-windows-gnu --release --features "clipboard"
mkdir build/x86_64-pc-windows-gnu
cp target/x86_64-pc-windows-gnu/release/broot.exe build/x86_64-pc-windows-gnu/
# build the Raspberry version
# use cargo cross
echo -e "${H2}Compiling the Raspberry version${EH}"
-cross build --target armv7-unknown-linux-gnueabihf --release
+cross build +1.58 --target armv7-unknown-linux-gnueabihf --release
mkdir build/armv7-unknown-linux-gnueabihf
cp target/armv7-unknown-linux-gnueabihf/release/broot build/armv7-unknown-linux-gnueabihf/
# build the Android version
# use cargo cross
echo -e "${H2}Compiling the Android version${EH}"
-cross build --target aarch64-linux-android --release --features "clipboard"
+cross build +1.58 --target aarch64-linux-android --release --features "clipboard"
mkdir build/aarch64-linux-android
cp target/aarch64-linux-android/release/broot build/aarch64-linux-android/
# build a musl version
echo -e "${H2}Compiling the MUSL version${EH}"
-cross build --release --target x86_64-unknown-linux-musl
+cross build +1.58 --release --target x86_64-unknown-linux-musl
mkdir build/x86_64-unknown-linux-musl
cp target/x86_64-unknown-linux-musl/release/broot build/x86_64-unknown-linux-musl