From 23b4ec4fb611ebfb082da5084e1894a69ebcb4ff Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 31 Aug 2020 11:28:24 +0100 Subject: [PATCH] disable-fuzzer-compiler-rt-x86 =================================================================== Gbp-Pq: Name disable-fuzzer-compiler-rt-x86.diff --- compiler-rt/lib/CMakeLists.txt | 5 ++++- compiler-rt/test/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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}) -- 2.30.2