Skip to content

Commit 3dc3015

Browse files
Merge pull request #1321 from matthiasblaesing/pr-1318
Add RISC-V 64 support
2 parents 95923c1 + 1b4f54f commit 3dc3015

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Next Release (5.8.0)
88
Features
99
--------
1010
* [#1313](https://github.com/java-native-access/jna/issues/1313): Normalize `RESOURCE_PREFIX` for darwin to `darwin-$arch` and split jnidispatch library per architecture - [@matthiasblaesing](https://github.com/matthiasblaesing).
11+
* [#1318](https://github.com/java-native-access/jna/pull/1318): Add support for linux-risc64 - [@thentschel](https://github.com/thentschel).
1112

1213
Bug Fixes
1314
---------

build.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@ osname=macosx;processor=aarch64
641641
<zipfileset src="${lib.native}/linux-s390x.jar"
642642
includes="*jnidispatch*"
643643
prefix="com/sun/jna/linux-s390x"/>
644+
<zipfileset src="${lib.native}/linux-riscv64.jar"
645+
includes="*jnidispatch*"
646+
prefix="com/sun/jna/linux-riscv64"/>
644647
<zipfileset src="${lib.native}/sunos-x86.jar"
645648
includes="*jnidispatch*"
646649
prefix="com/sun/jna/sunos-x86"/>
@@ -847,6 +850,7 @@ osname=macosx;processor=aarch64
847850
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/linux-sparcv9.jar" overwrite="true"/>
848851
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/linux-mips64el.jar" overwrite="true"/>
849852
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/linux-s390x.jar" overwrite="true"/>
853+
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/linux-riscv64.jar" overwrite="true"/>
850854
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/freebsd-x86.jar" overwrite="true"/>
851855
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/freebsd-x86-64.jar" overwrite="true"/>
852856
<copy file="${lib.native}/out-of-date.jar" tofile="${lib.native}/openbsd-x86.jar" overwrite="true"/>
@@ -961,6 +965,9 @@ osname=macosx;processor=aarch64
961965
<condition property="ARCH" value="ppc64">
962966
<equals arg1="${os.prefix}" arg2="aix-ppc64"/>
963967
</condition>
968+
<condition property="ARCH" value="riscv64">
969+
<matches string="${os.prefix}" pattern="-riscv64$"/>
970+
</condition>
964971
<!-- ensure ARCH is set properly for 64-bit capable platforms -->
965972
<!-- use ANT_OPTS=-d64/-d32 to build 64-bit/32-bit if not the platform default -->
966973
<property name="ARCH" value="${build.os.arch}"/>

lib/native/linux-riscv64.jar

41.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)