File tree Expand file tree Collapse file tree 5 files changed +6
-0
lines changed Expand file tree Collapse file tree 5 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ package crypto
2222// #cgo linux,amd64 CFLAGS: -I${SRCDIR}/libs/linux/amd64/include
2323// #cgo linux,arm64 CFLAGS: -I${SRCDIR}/libs/linux/arm64/include
2424// #cgo linux,arm CFLAGS: -I${SRCDIR}/libs/linux/arm/include
25+ // #cgo linux,riscv64 CFLAGS: -I${SRCDIR}/libs/linux/riscv64/include
2526// #cgo windows,amd64 CFLAGS: -I${SRCDIR}/libs/windows/amd64/include
2627// #include <stdint.h>
2728// enum {
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ package crypto
2727// #cgo linux,arm64 LDFLAGS: ${SRCDIR}/libs/linux/arm64/lib/libsodium.a
2828// #cgo linux,arm CFLAGS: -I${SRCDIR}/libs/linux/arm/include
2929// #cgo linux,arm LDFLAGS: ${SRCDIR}/libs/linux/arm/lib/libsodium.a
30+ // #cgo linux,riscv64 CFLAGS: -I${SRCDIR}/libs/linux/riscv64/include
31+ // #cgo linux,riscv64 LDFLAGS: ${SRCDIR}/libs/linux/riscv64/lib/libsodium.a
3032// #cgo windows,amd64 CFLAGS: -I${SRCDIR}/libs/windows/amd64/include
3133// #cgo windows,amd64 LDFLAGS: ${SRCDIR}/libs/windows/amd64/lib/libsodium.a
3234// #include <stdint.h>
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ package crypto
2121// #cgo linux,amd64 CFLAGS: -I${SRCDIR}/libs/linux/amd64/include
2222// #cgo linux,arm64 CFLAGS: -I${SRCDIR}/libs/linux/arm64/include
2323// #cgo linux,arm CFLAGS: -I${SRCDIR}/libs/linux/arm/include
24+ // #cgo linux,riscv64 CFLAGS: -I${SRCDIR}/libs/linux/riscv64/include
2425// #cgo windows,amd64 CFLAGS: -I${SRCDIR}/libs/windows/amd64/include
2526// #include <stdint.h>
2627// #include "sodium.h"
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ elif [[ "${ARCH}" = "armv7l" ]]; then
1515 echo " arm"
1616elif [[ " ${ARCH} " = " aarch64" ]] || [[ " ${ARCH} " = " arm64" ]]; then
1717 echo " arm64"
18+ elif [[ " ${ARCH} " = " riscv64" ]]; then
19+ echo " riscv64"
1820else
1921 # Anything else needs to be specifically added...
2022 echo " unsupported"
You can’t perform that action at this time.
0 commit comments