File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727fi
2828# Install rust compiler
2929echo " Installing rust compiler"
30- HOST_ABI_FLAGS=( " " )
30+ unset HOST_ABI_FLAGS
3131if [[ " $OSTYPE " == " msys" * ]]; then # Windows
32- HOST_ABI_FLAGS+ =(" --default-host" " $( clang --print-target-triple) " )
32+ HOST_ABI_FLAGS=(" --default-host" " $( clang --print-target-triple) " )
3333fi
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
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+ " ${HOST_ABI_FLAGS[@]} " } --default-toolchain 1.85
3535CARGO_BIN=" $HOME /.cargo/bin/cargo" # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
3636$CARGO_BIN install cbindgen
3737# Setup Poetry
You can’t perform that action at this time.
0 commit comments