summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/tests
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-01-12 17:15:05 +0000
committerKamil Rytarowski <n54@gmx.com>2018-01-12 17:15:05 +0000
commite81e94419901550cf7e6749f01643d5b2441b4b3 (patch)
treea2d20f5a3376a6755646c903f67206c1fcab1a04 /compiler-rt/lib/fuzzer/tests
parent93483e7f39f99bc20e3e9bbe5506617c6973c7c3 (diff)
downloadbcm5719-llvm-e81e94419901550cf7e6749f01643d5b2441b4b3.tar.gz
bcm5719-llvm-e81e94419901550cf7e6749f01643d5b2441b4b3.zip
lib Fuzzer FreeBSD support
Summary: Patch by David CARLIER Reviewers: vitalybuka, kcc, dim, emaste, davide, morehouse, george.karpenkov Reviewed By: morehouse Subscribers: george.karpenkov, kubamracek, srhines, mgorny, emaste, krytarowski Differential Revision: https://reviews.llvm.org/D41642 llvm-svn: 322380
Diffstat (limited to 'compiler-rt/lib/fuzzer/tests')
-rw-r--r--compiler-rt/lib/fuzzer/tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
index dac8773597e..9d888f0549e 100644
--- a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
@@ -12,8 +12,8 @@ set_target_properties(FuzzerUnitTests PROPERTIES FOLDER "Compiler-RT Tests")
set(LIBFUZZER_UNITTEST_LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS --driver-mode=g++)
-if(APPLE)
- list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lc++)
+if(APPLE OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lc++ -lpthread)
else()
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lstdc++ -lpthread)
endif()
OpenPOWER on IntegriCloud