Dayuxiaoshui commented on code in PR #3125:
URL: https://github.com/apache/brpc/pull/3125#discussion_r2468750113


##########
CMakeLists.txt:
##########
@@ -170,6 +170,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
     elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64"))
         # segmentation fault in libcontext
         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-gcse")
+    elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64"))

Review Comment:
   It is generally not necessary to forcibly add -march=rv64gc in bRPC's Bazel 
COPTS. Priority should be given to relying on the target architecture 
parameters provided by the Bazel toolchain itself (--cpu/--platform, 
CROSSTOOL/cc toolchain), and the toolchain should determine -march/-mcpu/-mabi. 
Only consider adding it in specific cross-compilation scenarios or when older 
toolchains have inconsistent defaults.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to