Skip to content

Commit

Permalink
Understand IA64N and IA64W
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Apr 22, 2018
1 parent cd6d803 commit 72e3f62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

* `x86_64` - if the value is one of: `x8664`, `amd64`, `ia32e`, `em64t`, `x64`
* `x86_32` - if the value is one of: `x8632`, `x86`, `i386`, `i486`, `i586`, `i686`, `ia32`, `x32`
* `itanium_64` - if the value is one of: `ia64`, `itanium64`
* `itanium_64` - if the value is one of: `ia64`, `ia64w`, `itanium64`
* `itanium_32` - if the value is one of: `ia64n`
* `sparc_32` - if the value is one of: `sparc`, `sparc32`
* `sparc_64` - if the value is one of: `sparcv9`, `sparc64`
* `arm_32` - if the value is one of: `arm`, `arm32`
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/kr/motd/maven/os/Detector.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,12 @@ private static String normalizeArch(String value) {
if (value.matches("^(x8632|x86|i[3-6]86|ia32|x32)$")) {
return "x86_32";
}
if (value.matches("^(ia64|itanium64)$")) {
if (value.matches("^(ia64w?|itanium64)$")) {
return "itanium_64";
}
if ("ia64n".equals(value)) {
return "itanium_32";
}
if (value.matches("^(sparc|sparc32)$")) {
return "sparc_32";
}
Expand Down

0 comments on commit 72e3f62

Please # to comment.