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
This commit is contained in:
Tomas Kolda 2018-06-18 09:42:29 -07:00 committed by Facebook Github Bot
parent e750dacffb
commit e5bee404ce

View file

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