summaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorEli Kobrin <kobrineli@star.intra.ispras.ru>2023-05-11 18:33:44 -0700
committerFangrui Song <i@maskray.me>2023-05-11 18:33:44 -0700
commit80ed3c30fc5c4c9f7f4f56360b30bcd4c1eb87fa (patch)
tree477a738e891c0109b2bdbe7e7e4c126d3808d529 /compiler-rt
parent1aec3d15aaa25c39fae026688708d7353d488974 (diff)
downloadllvm-80ed3c30fc5c4c9f7f4f56360b30bcd4c1eb87fa.tar.gz
[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
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
index 99d672de4e88..3892dd7a6f45 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")