We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b4bc8 commit b9358d3Copy full SHA for b9358d3
configure
@@ -1,10 +1,23 @@
1
+#!/bin/sh
2
# mimics: source ~/.cargo/env
3
export PATH="$HOME/.cargo/bin:$PATH"
4
5
# Write 'cargo' to Makevars
-cargo --version
6
+VERSION=$(cargo --version)
7
if [ $? -eq 0 ]; then
8
echo "Using `which cargo`"
9
+ echo "$VERSION"
10
+
11
+ # Check for old version of rustc (edition:2021 requires rust 1.56)
12
+ if [ "$(uname)" = "Linux" ]; then
13
+ VERNUM=$(echo $VERSION | cut -d' ' -f2) || true
14
+ MAJOR=$(echo $VERNUM | cut -d'.' -f1) || true
15
+ MINOR=$(echo $VERNUM | cut -d'.' -f2) || true
16
+ if [ "$MAJOR" -eq "1" ] && [ "$MINOR" -lt "56" ]; then
17
+ echo "Using legacy version of gifski"
18
+ cp -f src/legacy/* src/myrustlib/
19
+ fi
20
21
exit 0
22
fi
23
0 commit comments