We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e2099b commit 49be8a5Copy full SHA for 49be8a5
1 file changed
setup.sh
@@ -27,7 +27,11 @@ else
27
fi
28
# Install rust compiler
29
echo "Installing rust compiler"
30
-curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/rust-lang/rustup/refs/tags/1.28.2/rustup-init.sh -sSf | sh -s -- -y --default-host "$(clang --print-target-triple)" --default-toolchain 1.85
+HOST_ABI_FLAGS=""
31
+if [[ "$OSTYPE" == "msys"* ]]; then # Windows
32
+ HOST_ABI_FLAGS="--default-host $(clang --print-target-triple)"
33
+fi
34
+curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/rust-lang/rustup/refs/tags/1.28.2/rustup-init.sh -sSf | sh -s -- -y $HOST_ABI_FLAGS --default-toolchain 1.85
35
CARGO_BIN="$HOME/.cargo/bin/cargo" # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
36
$CARGO_BIN install cbindgen
37
# Setup Poetry
0 commit comments