We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
x86_64-pc-windows-msvc
1 parent a1543f1 commit 9e73e30Copy full SHA for 9e73e30
1 file changed
setup.sh
@@ -2,9 +2,6 @@
2
set -euo pipefail
3
IFS=$'\n\t'
4
5
-echo "$ clang --print-target-triple"
6
-clang --print-target-triple
7
-
8
# Get number of CPU cores
9
CPUS=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1)
10
@@ -30,7 +27,7 @@ else
30
27
fi
31
28
# Install rust compiler
32
29
echo "Installing rust compiler"
33
-curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.85
+curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-host "$(clang --print-target-triple)" --default-toolchain 1.85
34
CARGO_BIN="$HOME/.cargo/bin/cargo" # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
35
$CARGO_BIN install cbindgen
36
# Setup Poetry
0 commit comments