mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-29 09:36:17 +00:00
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:
parent
e750dacffb
commit
e5bee404ce
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue