zLinux s390x support in JNI (#4009)

Summary:
Adding support for zLinux on s390x architecture in JNI.
Closes https://github.com/facebook/rocksdb/pull/4009

Differential Revision: D8483750

Pulled By: siying

fbshipit-source-id: e681657c27e7a28f1731e08e8570382de5deff44
main
Tomas Kolda 7 years ago committed by Facebook Github Bot
parent e750dacffb
commit e5bee404ce
  1. 6
      java/src/main/java/org/rocksdb/util/Environment.java

@ -8,6 +8,10 @@ public class Environment {
return ARCH.contains("ppc");
}
public static boolean isS390x() {
return ARCH.contains("s390x");
}
public static boolean isWindows() {
return (OS.contains("win"));
}
@ -57,6 +61,8 @@ public class Environment {
final String arch = is64Bit() ? "64" : "32";
if(isPowerPC()) {
return String.format("%sjni-linux-%s", name, ARCH);
} else if(isS390x()) {
return String.format("%sjni-linux%s", name, ARCH);
} else {
return String.format("%sjni-linux%s", name, arch);
}

Loading…
Cancel
Save