disable-fuzzer-compiler-rt-x86
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 31 Oct 2020 13:13:25 +0000 (13:13 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 31 Oct 2020 13:13:25 +0000 (13:13 +0000)
===================================================================

Gbp-Pq: Name disable-fuzzer-compiler-rt-x86.diff

compiler-rt/lib/CMakeLists.txt
compiler-rt/test/CMakeLists.txt

index 39082aa06d42e53a4fba3c4e986f5fa480c01dec..c5a9149bd8742eb25628d17eebaaab67b6392849 100644 (file)
@@ -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()
index f0330bcfe304121e0cff6beba98749b2ddc86570..47fbc0dbaf3489479a9c5af94ee234241b6c1880 100644 (file)
@@ -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})