mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-24 06:24:40 +02:00
feat: address review comments
This commit is contained in:
parent
8bd9b370c8
commit
29f87f8357
@ -216,7 +216,7 @@ public class OSInfo {
|
||||
return "android-arm";
|
||||
}
|
||||
|
||||
if (isMusl()) {
|
||||
if (isX64Musl()) {
|
||||
return "x86_64-musl";
|
||||
}
|
||||
|
||||
@ -231,12 +231,11 @@ public class OSInfo {
|
||||
return translateArchNameToFolderName(osArch);
|
||||
}
|
||||
|
||||
private static boolean isMusl() {
|
||||
private static boolean isX64Musl() {
|
||||
try {
|
||||
return new File("/lib/ld-musl-x86_64.so.1").exists();
|
||||
}
|
||||
catch (Exception e) {
|
||||
System.err.println("Error while checking if ld-musl-x86_64.so.1 exists: " + e.getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user