From c709689758761b19f80b8a959e50de86a4302ec5 Mon Sep 17 00:00:00 2001 From: Xeonacid Date: Sat, 11 Jan 2025 21:44:01 +0800 Subject: [PATCH] Add riscv64 define for cds --- extern/libcds/cds/compiler/gcc/compiler_macro.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extern/libcds/cds/compiler/gcc/compiler_macro.h b/extern/libcds/cds/compiler/gcc/compiler_macro.h index c36c6f9c05..a1a42e66a7 100644 --- a/extern/libcds/cds/compiler/gcc/compiler_macro.h +++ b/extern/libcds/cds/compiler/gcc/compiler_macro.h @@ -132,6 +132,11 @@ # define CDS_PROCESSOR__NAME "LOONGARCH" # define CDS_PROCESSOR__NICK "loongarch" # define CDS_BUILD_BITS 64 +#elif defined(__riscv) && __riscv_xlen == 64 +# define CDS_PROCESSOR_ARCH CDS_PROCESSOR_RISCV64 +# define CDS_PROCESSOR__NAME "RISC-V64" +# define CDS_PROCESSOR__NICK "riscv64" +# define CDS_BUILD_BITS 64 #else # if defined(CDS_USE_LIBCDS_ATOMIC) # error "Libcds does not support atomic implementation for the processor architecture. Try to use C++11-compatible compiler and remove CDS_USE_LIBCDS_ATOMIC flag from compiler command line"