Skip to content

Commit

Permalink
add android platform
Browse files Browse the repository at this point in the history
  • Loading branch information
aicodex committed Aug 11, 2017
1 parent dda59b9 commit 1872587
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/org/jocl/LibUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ enum OSType
*/
enum ArchType
{
PPC, PPC_64, SPARC, X86, X86_64, ARM, ARM64, MIPS, MIPS64, RISC, UNKNOWN
PPC, PPC_64, SPARC, X86, X86_64, ARM, ARMV7, ARM64, MIPS, MIPS64, RISC, UNKNOWN
}

/**
Expand Down Expand Up @@ -591,14 +591,18 @@ private static ArchType calculateArch()
{
return ArchType.X86_64;
}
if (osArch.startsWith("arm64"))
if (osArch.startsWith("arm64") || osArch.startsWith("aarch64"))
{
return ArchType.ARM64;
}
if (osArch.startsWith("arm"))
if (osArch.startsWith("armv5tel"))
{
return ArchType.ARM;
}
if (osArch.startsWith("armv7hl"))
{
return ArchType.ARMV7;
}
if ("ppc".equals(osArch) || "powerpc".equals(osArch))
{
return ArchType.PPC;
Expand Down

0 comments on commit 1872587

Please sign in to comment.