Skip to content

Commit

Permalink
Add RISC-V support
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrygamat committed Nov 6, 2023
1 parent f096454 commit 4d8639a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
os_target_bitness: 64
image: docker.io/dockcross/linux-arm64-lts

- target: linux_riscv64
os_target_name: linux
os_target_arch: riscv64
os_target_bitness: 64
image: docker.io/dockcross/linux-riscv64

- target: linux_ppc
os_target_name: linux
os_target_arch: ppc_64
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ if(NOT NATIVE_LIB_DIR OR "${NATIVE_LIB_DIR}" STREQUAL "")
set(OS_SUFFIX "arm64")
elseif("${OS_ARCH}" MATCHES "arm")
set(OS_SUFFIX "arm")
elseif("${OS_ARCH}" MATCHES "riscv64")
set(OS_SUFFIX "riscv64")
elseif(FORCE_M32)
set(OS_SUFFIX 32)
elseif(FORCE_M64)
Expand Down
6 changes: 6 additions & 0 deletions ant/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
<condition property="nativelibdir.suffix" value="arm">
<equals arg1="${os.target.arch}" arg2="arm_32"/>
</condition>

<!-- "riscv64"-->
<condition property="nativelibdir.suffix" value="riscv64">
<equals arg1="${os.target.arch}" arg2="riscv64"/>
</condition>

<!-- "ppc_64" <=> "ppc" -->
<condition property="nativelibdir.suffix" value="ppc">
<equals arg1="${os.target.arch}" arg2="ppc_64"/>
Expand Down

0 comments on commit 4d8639a

Please sign in to comment.