Skip to content

Commit

Permalink
Merge pull request #61 from remkop/master
Browse files Browse the repository at this point in the history
Fix issue where bitModel could not be retrieved on GraalVM
  • Loading branch information
gnodet committed May 5, 2020
2 parents d145a1d + 2c64ed4 commit 8678713
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ public static int getBitModel() {
if( prop!=null ) {
return Integer.parseInt(prop);
}
// GraalVM support, see https://github.com/fusesource/jansi/issues/162
String arch = System.getProperty("os.arch");
if (arch.endsWith("64") && "Substrate VM".equals(System.getProperty("java.vm.name"))) {
return 64;
}
return -1; // we don't know..
}

Expand Down

0 comments on commit 8678713

Please sign in to comment.