File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ cargo -vV
10
10
if [ -n " $INSTALL_BINDGEN " ]; then
11
11
# Install `cargo-binstall` first for faster installation.
12
12
curl -L --proto ' =https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
13
- cargo binstall -y --force --locked bindgen-cli
13
+ # An explicit `--target` is required to ensure that `bindgen-cli` is built for the
14
+ # same target as the rest of the toolchain.
15
+ # See: <https://github.com/rust-lang/rustup/issues/4396>
16
+ cargo binstall -y --force --locked bindgen-cli " --target=$( rustc --print host-tuple) "
14
17
mkdir " $CARGO_HOME " /bin/bindgen-cli
15
18
mv " $CARGO_HOME " /bin/bindgen " $CARGO_HOME " /bin/bindgen-cli/
16
19
export PATH=" $CARGO_HOME /bin/bindgen-cli:$PATH "
You can’t perform that action at this time.
0 commit comments