Skip to content

Commit

Permalink
Add "x86_64" and "x86-64" aliases for "x64" (#44)
Browse files Browse the repository at this point in the history
By a popular request...
  • Loading branch information
ilammy authored May 29, 2021
1 parent 985d494 commit e78ece9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

- `arch` – target architecture
- native compilation:
- `x64` (default) or its synonyms: `amd64`, `win64`
- `x64` (default) or its synonyms: `amd64`, `win64`, `x86_64`
- `x86` or its synonyms: `win32`
- cross-compilation: `x86_amd64`, `x86_arm`, `x86_arm64`, `amd64_x86`, `amd64_arm`, `amd64_arm64`
- `sdk` – Windows SDK to use
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ function main() {
let arch_aliases = {
"win32": "x86",
"win64": "x64",
"x86_64": "x64",
"x86-64": "x64",
}
// Ignore case when matching as that's what humans expect.
if (arch.toLowerCase() in arch_aliases) {
Expand Down

0 comments on commit e78ece9

Please sign in to comment.