[libc-commits] [libc] [libc] [riscv] support build with `scudo` on `riscv64` (PR #74951)

via libc-commits libc-commits at lists.llvm.org
Mon Dec 11 10:48:54 PST 2023


================
@@ -268,18 +268,27 @@ if(LLVM_LIBC_INCLUDE_SCUDO)
   set(SCUDO_DEPS "")
 
   include(${LIBC_SOURCE_DIR}/../compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake)
-  if(NOT (LIBC_TARGET_ARCHITECTURE IN_LIST ALL_SCUDO_STANDALONE_SUPPORTED_ARCH))
-    message(FATAL_ERROR "Architecture ${LIBC_TARGET_ARCHITECTURE} is not supported by SCUDO. 
+  
+  # scudo distinguishes riscv32 and riscv64, so we need to translate the architecture
+  set(LIBC_TARGET_ARCHITECTURE_FOR_SCUDO ${LIBC_TARGET_ARCHITECTURE})
----------------
michaelrj-google wrote:

alright, in that case this seems fine.

https://github.com/llvm/llvm-project/pull/74951


More information about the libc-commits mailing list