mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-25 15:04:32 +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";
|
return "android-arm";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMusl()) {
|
if (isX64Musl()) {
|
||||||
return "x86_64-musl";
|
return "x86_64-musl";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,12 +231,11 @@ public class OSInfo {
|
|||||||
return translateArchNameToFolderName(osArch);
|
return translateArchNameToFolderName(osArch);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isMusl() {
|
private static boolean isX64Musl() {
|
||||||
try {
|
try {
|
||||||
return new File("/lib/ld-musl-x86_64.so.1").exists();
|
return new File("/lib/ld-musl-x86_64.so.1").exists();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
System.err.println("Error while checking if ld-musl-x86_64.so.1 exists: " + e.getMessage());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user