From 305d2ef6204470bd2d7ee6dd44101318a16bd0e2 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 28 Feb 2022 09:45:24 -0500 Subject: [PATCH] [windows] When installing Rust, add the i686 target to enable building 32-bit binaries (#5116) * [windows] When installing Rust, add the i686 target to enable building 32-bit binaries * Move code so that rustup is on the path --- images/win/scripts/Installers/Install-Rust.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/win/scripts/Installers/Install-Rust.ps1 b/images/win/scripts/Installers/Install-Rust.ps1 index 73b5abb3f..d9b43311a 100644 --- a/images/win/scripts/Installers/Install-Rust.ps1 +++ b/images/win/scripts/Installers/Install-Rust.ps1 @@ -19,6 +19,9 @@ Add-DefaultPathItem "%USERPROFILE%\.cargo\bin" # Add Rust binaries to the path $env:Path += ";$env:CARGO_HOME\bin" +# Add i686 target for building 32-bit binaries +rustup target add i686-pc-windows-msvc + # Install common tools rustup component add rustfmt clippy cargo install --locked bindgen cbindgen cargo-audit cargo-outdated