[PATCH] D15290: [libFuzzer] CMake support for libFuzzer on OS X
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 08:29:46 PST 2015
kubabrecka created this revision.
kubabrecka added reviewers: kcc, glider, samsonov.
kubabrecka added subscribers: llvm-commits, zaks.anna.
LLVM currently doesn't build with `-DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=YES` on OS X. To fix that let's disable DFSan and Uninstrumented tests of libFuzzer (DFSan is not supported on OS X and uninstrumented tests fail to link because of the missing runtime).
http://reviews.llvm.org/D15290
Files:
lib/Fuzzer/test/CMakeLists.txt
lib/Fuzzer/test/uninstrumented/CMakeLists.txt
Index: lib/Fuzzer/test/uninstrumented/CMakeLists.txt
===================================================================
--- lib/Fuzzer/test/uninstrumented/CMakeLists.txt
+++ lib/Fuzzer/test/uninstrumented/CMakeLists.txt
@@ -9,6 +9,7 @@
)
target_link_libraries(LLVMFuzzer-${Test}-Uninstrumented
LLVMFuzzer
+ $LIBFUZZER_FLAGS_BASE
)
endforeach()
Index: lib/Fuzzer/test/CMakeLists.txt
===================================================================
--- lib/Fuzzer/test/CMakeLists.txt
+++ lib/Fuzzer/test/CMakeLists.txt
@@ -90,17 +90,19 @@
set(TestBinaries ${TestBinaries} LLVMFuzzer-Unittest)
-add_subdirectory(dfsan)
+if(NOT APPLE)
+ add_subdirectory(dfsan)
-foreach(Test ${DFSanTests})
- set(TestBinaries ${TestBinaries} LLVMFuzzer-${Test}-DFSan)
-endforeach()
-
-add_subdirectory(uninstrumented)
-
-foreach(Test ${UninstrumentedTests})
- set(TestBinaries ${TestBinaries} LLVMFuzzer-${Test}-Uninstrumented)
-endforeach()
+ foreach(Test ${DFSanTests})
+ set(TestBinaries ${TestBinaries} LLVMFuzzer-${Test}-DFSan)
+ endforeach()
+
+ add_subdirectory(uninstrumented)
+
+ foreach(Test ${UninstrumentedTests})
+ set(TestBinaries ${TestBinaries} LLVMFuzzer-${Test}-Uninstrumented)
+ endforeach()
+endif()
add_subdirectory(trace-bb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15290.42071.patch
Type: text/x-patch
Size: 1280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151207/22ce8f50/attachment.bin>
More information about the llvm-commits
mailing list