Skip to content

Commit

Permalink
Merge pull request #30 from NordSecurity/win-x68
Browse files Browse the repository at this point in the history
Support for windows i686 target
  • Loading branch information
Aivaras Saulius authored Nov 27, 2024
2 parents 2270451 + ab5fc20 commit 1b4d20e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust_build_utils/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def preference_index(e):
# architecture string that will be passed to vcvarsall
if not direct_pass_arch and arch == "aarch64":
arch = "arm64"
if not direct_pass_arch and arch == "i686":
arch = "x86"
arch = (
arch
if direct_pass_arch or arch in ("amd64", "x64")
Expand Down
3 changes: 3 additions & 0 deletions rust_build_utils/rust_utils_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
"x86_64": {
"rust_target": "x86_64-pc-windows-msvc",
},
"i686": {
"rust_target": "i686-pc-windows-msvc",
},
"aarch64": {
"rust_target": "aarch64-pc-windows-msvc",
},
Expand Down

0 comments on commit 1b4d20e

Please sign in to comment.