[compiler-rt] 80ed3c3 - [CMake][fuzzer] Add riscv64 to fuzzer supported arch list

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 18:33:49 PDT 2023


Author: Eli Kobrin
Date: 2023-05-11T18:33:44-07:00
New Revision: 80ed3c30fc5c4c9f7f4f56360b30bcd4c1eb87fa

URL: https://github.com/llvm/llvm-project/commit/80ed3c30fc5c4c9f7f4f56360b30bcd4c1eb87fa
DIFF: https://github.com/llvm/llvm-project/commit/80ed3c30fc5c4c9f7f4f56360b30bcd4c1eb87fa.diff

LOG: [CMake][fuzzer] Add riscv64 to fuzzer supported arch list

I tried to build libFuzzer for RISC-V and succeeded. All the libFuzzer
targets were successfully built. I tested this on the small hello world code
with a few branches to check the instrumentation; all of them were covered by
libFuzzer on RISC-V arch. So I suppose it makes sense to enable libFuzzer
build for RISC-V.

Reviewed By: phosek, thetruestblue, MaskRay

Differential Revision: https://reviews.llvm.org/D147788

Added: 
    

Modified: 
    compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
index 99d672de4e882..3892dd7a6f453 100644
--- a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
+++ b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
@@ -38,7 +38,8 @@ else()
 endif()
 
 if(OS_NAME MATCHES "Linux")
-  set(ALL_FUZZER_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64} ${S390X})
+  set(ALL_FUZZER_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64} ${S390X}
+      ${RISCV64})
 elseif (OS_NAME MATCHES "Windows")
   set(ALL_FUZZER_SUPPORTED_ARCH ${X86} ${X86_64})
 elseif(OS_NAME MATCHES "Android")


        


More information about the llvm-commits mailing list