From: LLVM Packaging Team Date: Thu, 22 Oct 2020 20:29:07 +0000 (+0100) Subject: disable-fuzzer-compiler-rt-x86 X-Git-Tag: archive/raspbian/1%10.0.1-8+rpi1^2^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f846520538674047b36b14312ed25b292642932c;p=llvm-toolchain-10.git disable-fuzzer-compiler-rt-x86 =================================================================== Gbp-Pq: Name disable-fuzzer-compiler-rt-x86.diff --- diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt index 39082aa06..c5a9149bd 100644 --- a/compiler-rt/lib/CMakeLists.txt +++ b/compiler-rt/lib/CMakeLists.txt @@ -57,5 +57,8 @@ if(COMPILER_RT_BUILD_XRAY) endif() if(COMPILER_RT_BUILD_LIBFUZZER) - compiler_rt_build_runtime(fuzzer) + if(NOT(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i386" OR CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i686")) + # Disabled because of https://bugs.llvm.org/show_bug.cgi?id=43677 + compiler_rt_build_runtime(fuzzer) + endif() endif() diff --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt index f0330bcfe..47fbc0dba 100644 --- a/compiler-rt/test/CMakeLists.txt +++ b/compiler-rt/test/CMakeLists.txt @@ -55,7 +55,10 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS) # OpenBSD not supporting asan, cannot run the tests if(COMPILER_RT_BUILD_LIBFUZZER AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD" AND NOT ANDROID) - compiler_rt_test_runtime(fuzzer) + if(NOT(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i386" OR CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i686")) + # Disabled because of https://bugs.llvm.org/show_bug.cgi?id=43677 + compiler_rt_test_runtime(fuzzer) + endif() endif() foreach(sanitizer ${COMPILER_RT_SANITIZERS_TO_BUILD})