Skip to content

Commit

Permalink
feat: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samyuh authored Feb 6, 2025
1 parent 8bd9b37 commit 29f87f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/xerial/snappy/OSInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public static String getArchName() {
return "android-arm";
}

if (isMusl()) {
if (isX64Musl()) {
return "x86_64-musl";
}

Expand All @@ -231,12 +231,11 @@ public static String getArchName() {
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;
}
}
Expand Down

0 comments on commit 29f87f8

Please sign in to comment.