mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
compiler-rt: enable __bswapsi2/__bswapdi2 for RISC-V
As with other archs the compiler may emit calls to the byte swap routines under certain conditions. MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
331884f291
commit
ea0a30b145
1 changed files with 2 additions and 1 deletions
|
|
@ -234,7 +234,8 @@ SRCS+= sync_synchronize.S
|
|||
.endif
|
||||
|
||||
# On some archs GCC-6.3 requires bswap32 built-in.
|
||||
.if ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "sparc64"
|
||||
.if ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "riscv" || \
|
||||
${MACHINE_CPUARCH} == "sparc64"
|
||||
SRCS+= bswapdi2.c
|
||||
SRCS+= bswapsi2.c
|
||||
.endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue