Skip to content

Commit

Permalink
Support for windows i686 target
Browse files Browse the repository at this point in the history
  • Loading branch information
nymoral authored Nov 27, 2024
1 parent 2270451 commit ab5fc20
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 ab5fc20

Please sign in to comment.