forked from OSchip/llvm-project
[libFuzzer] Re-enable libFuzzer on i386 Linux and fix test
Summary: Re-enable libFuzzer on i386 Linux after it was accidentally disabled. Also disable gc-sections.test on i386 since lld isn't garbage collecting properly with ASAN on i386. Reviewers: morehouse Reviewed By: morehouse Subscribers: srhines, mgorny, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61415 llvm-svn: 359802
This commit is contained in:
parent
e25a0e9510
commit
3d1d3ad50e
|
@ -232,7 +232,14 @@ set(ALL_ASAN_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64}
|
|||
${MIPS32} ${MIPS64} ${PPC64} ${S390X})
|
||||
set(ALL_CRT_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM32} ${ARM64})
|
||||
set(ALL_DFSAN_SUPPORTED_ARCH ${X86_64} ${MIPS64} ${ARM64})
|
||||
if(LINUX)
|
||||
|
||||
if(ANDROID)
|
||||
set(OS_NAME "Android")
|
||||
else()
|
||||
set(OS_NAME "${CMAKE_SYSTEM_NAME}")
|
||||
endif()
|
||||
|
||||
if(OS_NAME MATCHES "Linux")
|
||||
set(ALL_FUZZER_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM64})
|
||||
else()
|
||||
set(ALL_FUZZER_SUPPORTED_ARCH ${X86_64} ${ARM64})
|
||||
|
@ -526,12 +533,6 @@ if(COMPILER_RT_SUPPORTED_ARCH)
|
|||
endif()
|
||||
message(STATUS "Compiler-RT supported architectures: ${COMPILER_RT_SUPPORTED_ARCH}")
|
||||
|
||||
if(ANDROID)
|
||||
set(OS_NAME "Android")
|
||||
else()
|
||||
set(OS_NAME "${CMAKE_SYSTEM_NAME}")
|
||||
endif()
|
||||
|
||||
set(ALL_SANITIZERS asan;dfsan;msan;hwasan;tsan;safestack;cfi;scudo;ubsan_minimal)
|
||||
set(COMPILER_RT_SANITIZERS_TO_BUILD all CACHE STRING
|
||||
"sanitizers to build if supported on the target (all;${ALL_SANITIZERS})")
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
REQUIRES: linux, lld-available
|
||||
# LLD isn't pruning functions as we expect it to with ASAN on i386.
|
||||
UNSUPPORTED: i386
|
||||
|
||||
No gc-sections:
|
||||
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t
|
||||
|
|
Loading…
Reference in New Issue