[PATCH] D61415: [libFuzzer] Re-enable libFuzzer on i386 Linux and fix test
Jonathan Metzman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 09:45:08 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT359802: [libFuzzer] Re-enable libFuzzer on i386 Linux and fix test (authored by metzman, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61415?vs=197678&id=197810#toc
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61415/new/
https://reviews.llvm.org/D61415
Files:
cmake/config-ix.cmake
test/fuzzer/gc-sections.test
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -232,7 +232,14 @@
${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 @@
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})")
Index: test/fuzzer/gc-sections.test
===================================================================
--- test/fuzzer/gc-sections.test
+++ test/fuzzer/gc-sections.test
@@ -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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61415.197810.patch
Type: text/x-patch
Size: 1402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190502/120e2781/attachment.bin>
More information about the llvm-commits
mailing list